mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-26 14:00:29 +01:00
Merge #19610: p2p: refactor AlreadyHave(), CInv::type, INV/TX processing
fb56d37612p2p: ensure inv is GenMsgTx before ToGenTxid in inv processing (John Newbery)aa3621385etest: use CInv::MSG_WITNESS_TX flag in p2p_segwit (Jon Atack)24ee4f01eap2p: make gtxid(.hash) and fAlreadyHave localvars const (Jon Atack)b1c855453bp2p: use CInv block message helpers in net_processing.cpp (Jon Atack)acd6642167[net processing] Change AlreadyHaveTx() to take a GenTxid (John Newbery)5fdfb80b86[net processing] Change AlreadyHaveBlock() to take block_hash argument (John Newbery)430e183b89[net processing] Remove mempool argument from AlreadyHaveBlock() (John Newbery)42ca5618ca[net processing] Split AlreadyHave() into separate block and tx functions (John Newbery)39f1dc9445p2p: remove nFetchFlags from NetMsgType TX and INV processing (Jon Atack)471714e1f0p2p: add CInv block message helper methods (Jon Atack) Pull request description: Building on #19590 and the recent `wtxid` and `GenTxid` changes, this is a refactoring and cleanup PR to simplify and improve some of the net processing code. Some of the diffs are best reviewed with `-w` to ignore spacing. Co-authored by John Newbery. ACKs for top commit: laanwj: Code review ACKfb56d37612jnewbery: utACKfb56d37612vasild: ACKfb56d3761Tree-SHA512: ba39b58e6aaf850880a842fe5f6295e9f1870906ef690206acfc17140aae2ac854981e1066dbcd4238062478762fbd040ef772fdc2c50eea6869997c583e6a6d
This commit is contained in:
@@ -63,6 +63,7 @@ MSG_CMPCT_BLOCK = 4
|
||||
MSG_WTX = 5
|
||||
MSG_WITNESS_FLAG = 1 << 30
|
||||
MSG_TYPE_MASK = 0xffffffff >> 2
|
||||
MSG_WITNESS_TX = MSG_TX | MSG_WITNESS_FLAG
|
||||
|
||||
FILTER_TYPE_BASIC = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user