diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-09-12 20:00:33 -0400 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-11-03 13:32:09 -0700 |
commit | 3e32cd09f643bf7d4344d3bb2e1136f186f3d109 (patch) | |
tree | 315c62f9fa5df102dce6f211083bfa682c3794be /contrib/bitcoin-tx.bash-completion | |
parent | b98c14c4e362a8e59d7a3b021651a19ea61b29dd (diff) |
connman is in charge of pushing messages
The changes here are dense and subtle, but hopefully all is more explicit
than before.
- CConnman is now in charge of sending data rather than the nodes themselves.
This is necessary because many decisions need to be made with all nodes in
mind, and a model that requires the nodes calling up to their manager quickly
turns to spaghetti.
- The per-node-serializer (ssSend) has been replaced with a (quasi-)const
send-version. Since the send version for serialization can only change once
per connection, we now explicitly tag messages with INIT_PROTO_VERSION if
they are sent before the handshake. With this done, there's no need to lock
for access to nSendVersion.
Also, a new stream is used for each message, so there's no need to lock
during the serialization process.
- This takes care of accounting for optimistic sends, so the
nOptimisticBytesWritten hack can be removed.
- -dropmessagestest and -fuzzmessagestest have not been preserved, as I suspect
they haven't been used in years.
Diffstat (limited to 'contrib/bitcoin-tx.bash-completion')
0 files changed, 0 insertions, 0 deletions