mirror of
https://github.com/Xahau/xahaud.git
synced 2026-10-10 13:58:12 +00:00
refactor(consensus): trim small duplicated extension constants
Reuse SidecarPeerAlignment::quorumAligned for export sidecar gates, name the shared sidecar convergence timeout, and centralize the RNG commitment tuple. Also make ExportLimits::maxExportsPerHook the value enforced by xport_reserve, with a static assertion against the hook ABI constant.
This commit is contained in:
@@ -836,8 +836,6 @@ class ConsensusExtensions_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(!detail::sidecarQuorumAligned(2, true, 4));
|
||||
BEAST_EXPECT(detail::sidecarFullObservation(2, 2));
|
||||
BEAST_EXPECT(!detail::sidecarFullObservation(2, 3));
|
||||
BEAST_EXPECT(detail::exportSigSetQuorumAligned(4, 4));
|
||||
BEAST_EXPECT(!detail::exportSigSetQuorumAligned(3, 4));
|
||||
|
||||
ExtensionTickHarness harness;
|
||||
auto const localHash = makeHash("sidecar-local");
|
||||
|
||||
Reference in New Issue
Block a user