-
Notifications
You must be signed in to change notification settings - Fork 1
Projects on hold
Replace it with BlockFailedValidation().
The only reason we need a BlockChecked with successful validation is for choosing high-bandwidth compact block providers. We could easily do that in the UpdatedBlockTip() callback.
Also see 2021-07-hb-in-block-connected
Extract functionality into ProcessTx()
and tidy up.
See https://github.com/bitcoin/bitcoin/pull/17562 and https://github.com/bitcoin/bitcoin/pull/18685
Make AddrInfo::GetTriedBucket()
, AddrInfo::GetNewBucket()
and AddrInfo::GetBucketPosition()
members of AddrManImpl()
Currently, we call AddrInfo::GetTriedBucket()|GetNewBucket()|GetBucketPosition()
and pass in addrman's key and asmap. Instead, those functions should be members of AddrManImpl
, and take a const AddrInfo&
as a parameter. We could also make GetTriedBucket()
and GetNewBucket()
return a std::pair
of (bucket, position)
, since both pieces of data are always required.
Requires quite a lot of updates to the tests.
- commit (requires significant rebase since it was implemented before addrman used a pimpl)
uint256 isn't really an int, it's a binary blob. Rename it to b256
to make that more obvious. Then rename arith_uint256
to uint256
.
Also make fDisconnect private. This ensures that disconnections are always logged.
Based on https://github.com/bitcoin/bitcoin/pull/21527