serai/coordinator/tributary
Luke Parker 2db53d5434
Use &self for handle_message and sync_block in Tributary
They used &mut self to prevent execution at the same time. This uses a lock
over the channel to achieve the same security, without requiring a lock over
the entire tributary.

This fixes post-provided Provided transactions. sync_block waited for the TX to
be provided, yet it never would as sync_block held a mutable reference over the
entire Tributary, preventing any other read/write operations of any scope.

A timeout increased (bc2f23f72b) due to this bug
not being identified has been decreased back, thankfully.

Also shims in basic support for Completed, which was the WIP before this bug
was identified.
2023-08-27 05:07:11 -04:00
..
src Use &self for handle_message and sync_block in Tributary 2023-08-27 05:07:11 -04:00
tendermint use half-aggregation for tm messages (#346) 2023-08-21 01:22:00 -04:00
Cargo.toml Slash malevolent validators (#294) 2023-08-21 00:28:23 -04:00
LICENSE Create a folder for tributary, the micro-blockchain 2023-04-11 10:18:31 -04:00
README.md Clarify Arc RwLocks and sleeps in coordinator 2023-04-23 18:29:50 -04:00

Tributary

A verifiable, ordered broadcast layer implemented as a BFT micro-blockchain.