This PR introduces unit tests for zk/txpool/send.go. The tests were referenced from upstream Erigon and customized to pass on CDK Erigon.
Notable differences between CDK Erigon and Upstream Erigon's pool announcement can be observed in AnnouncePooledTxs, where Upstream Erigon utilizes SendMessageToRandomPeers while CDK Erigon utilizes SendMessageToAll. This behaviour required changes in the unit tests to suit CDK Erigon's pool propagation behaviour.
This PR introduces unit tests for
zk/txpool/send.go
. The tests were referenced from upstream Erigon and customized to pass on CDK Erigon.Notable differences between CDK Erigon and Upstream Erigon's pool announcement can be observed in
AnnouncePooledTxs
, where Upstream Erigon utilizes SendMessageToRandomPeers while CDK Erigon utilizes SendMessageToAll. This behaviour required changes in the unit tests to suit CDK Erigon's pool propagation behaviour.