-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mutil: introduce simple BlockBeat
to fix itest flakes
#8717
base: master
Are you sure you want to change the base?
Commits on Jun 3, 2024
-
chainntnfs+lnd: replace
BlockHeader
withBlock
So the block data can be used by subsystems without calling `GetBlock`.
Configuration menu - View commit details
-
Copy full SHA for a517cfb - Browse repository at this point
Copy the full SHA a517cfbView commit details -
sweep: add new state
TxError
for erroneous sweepingsAlso updated the loggings. This new state will be used in the following commit.
Configuration menu - View commit details
-
Copy full SHA for 5eb0e6d - Browse repository at this point
Copy the full SHA 5eb0e6dView commit details -
sweep: add
handleInitialBroadcast
to handle initial broadcastThis commit adds a new method `handleInitialBroadcast` to handle the initial broadcast. Previously we'd broadcast immediately inside `Broadcast`, which soon will not work giving the blockbeat being used in the following commit.
Configuration menu - View commit details
-
Copy full SHA for 8ba5810 - Browse repository at this point
Copy the full SHA 8ba5810View commit details -
Configuration menu - View commit details
-
Copy full SHA for df0190e - Browse repository at this point
Copy the full SHA df0190eView commit details -
sweep: add method
handleBumpEventError
and fixmarkInputFailed
Previously in `markInputFailed`, we'd remove all inputs under the same group via `removeExclusiveGroup`. This is wrong as when the current sweep fails for this input, it shouldn't affect other inputs.
Configuration menu - View commit details
-
Copy full SHA for f601893 - Browse repository at this point
Copy the full SHA f601893View commit details -
sweep: add method
isMature
onSweeperInput
Also updated `handlePendingSweepsReq` to skip immature inputs so the returned results are the same as those in pre-0.18.0.
Configuration menu - View commit details
-
Copy full SHA for a7addc3 - Browse repository at this point
Copy the full SHA a7addc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01a576a - Browse repository at this point
Copy the full SHA 01a576aView commit details -
chainio: add
blockbeat
to handle block synchronization among subsys……tems In this commit, a minimal version of `BlockBeat` is added to synchronize block heights, which will be used in `ChainArb`, `Sweeper`, and `TxPublisher` so blocks are processed sequentially among them.
Configuration menu - View commit details
-
Copy full SHA for 845867d - Browse repository at this point
Copy the full SHA 845867dView commit details -
sweep+contractcourt: update
UtxoSweeper
,TxPublisher
and `ChainAr……b` to use blockbeat In this commit, we replace the individual block subscription with the implementation of the interface method `ProcessBlock` so they share a single block notifier.
Configuration menu - View commit details
-
Copy full SHA for 7090c9e - Browse repository at this point
Copy the full SHA 7090c9eView commit details -
contractcourt: use blockbeat in
ChannelArbitrator
This commit refactors the block dispatching logic in `ChainArbitrator` so the blocks are sent concurrently to all active channel arbitrators. It also makes sure the blockbeat is now sent to channel arbitrators.
Configuration menu - View commit details
-
Copy full SHA for faac005 - Browse repository at this point
Copy the full SHA faac005View commit details -
contractcourt: init
activeResolvers
with a block chanThis commit changes the `activeResolvers` map so each active resolver now has a block chan to receive new blocks.
Configuration menu - View commit details
-
Copy full SHA for 6ee2cd7 - Browse repository at this point
Copy the full SHA 6ee2cd7View commit details -
contractcourt: remove block subscription used in resolvers
After this commit, when a new block comes, it will be passed through chainArb -> ChannelArbitrator -> resolvers.
Configuration menu - View commit details
-
Copy full SHA for d96d4c5 - Browse repository at this point
Copy the full SHA d96d4c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06a9c13 - Browse repository at this point
Copy the full SHA 06a9c13View commit details -
contractcourt: remove the immediate param used in
Resolve
This `immediate` flag was added as a hack so during a restart, the pending resolvers would offer the inputs to the sweeper and ask it to sweep them immediately. This is no longer need due to `blockbeat`, as now during restart, a block is always sent to all subsystems via the flow `ChainArb` -> `ChannelArb` -> resolvers -> sweeper. Thus, when there are pending inputs offered, they will be processed by the sweeper immediately.
Configuration menu - View commit details
-
Copy full SHA for dd2b110 - Browse repository at this point
Copy the full SHA dd2b110View commit details -
contractcourt: remove
waitForHeight
in resolversThe sweeper can handle the waiting so there's no need to wait for blocks inside the resolvers. By offering the inputs prior to their mature heights also guarantees the inputs with the same deadline are aggregated.
Configuration menu - View commit details
-
Copy full SHA for ce7cba6 - Browse repository at this point
Copy the full SHA ce7cba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc18614 - Browse repository at this point
Copy the full SHA bc18614View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1378022 - Browse repository at this point
Copy the full SHA 1378022View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b5f718 - Browse repository at this point
Copy the full SHA 3b5f718View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ec05ab - Browse repository at this point
Copy the full SHA 6ec05abView commit details