mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-10 16:16:47 +00:00

* [DEV-332] Added MerkleProof to MsgBlock and rejected full-node/partial-block type misbehaviors. * [DEV-332] Fixed merge issues. * [DEV-332] Got rid of MerkleProof. Turns out we no longer need it. * [DEV-332] Got rid of NTBlockDisconnected, as no one was ever triggering it. (It was part of reorg) * [DEV-332] Implemented clearing out the payloads of transactions of outgoing blocks for partial nodes. * [DEV-332] Extracted ConvertToPartial to its own method. Added a test. Added a condition for converting to a partial block. * [DEV-332] Fixed bad ConvertToPartial condition.
netsync
Overview
This package implements a concurrency safe block syncing protocol. The SyncManager communicates with connected peers to perform an initial block download, keep the chain and unconfirmed transaction pool in sync, and announce new blocks connected to the chain. Currently the sync manager selects a single sync peer that it downloads all blocks from until it is up to date with the longest chain the sync peer is aware of.
Installation and Updating
$ go get -u github.com/daglabs/btcd/netsync
License
Package netsync is licensed under the copyfree ISC License.