Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bb33e7c
feat(consensus): add ExtendedPosition for RNG entropy support
sublimator Feb 5, 2026
a828e8a
feat(consensus): add RNG wire protocol and harvest logic
sublimator Feb 5, 2026
e7867c0
feat(consensus): add RNG sub-state gating logic in phaseEstablish
sublimator Feb 5, 2026
960fffc
feat(consensus): add ttCONSENSUS_ENTROPY pseudo-transaction protocol …
sublimator Feb 5, 2026
28bd0a2
feat(consensus): add entropy injection, tx ordering, and dispatch reg…
sublimator Feb 5, 2026
a6dd54f
feat(consensus): add featureConsensusEntropy amendment gating
sublimator Feb 6, 2026
c44dea3
fix(consensus): resolve commit-reveal pipeline bugs enabling non-zero…
sublimator Feb 6, 2026
3e5389d
feat(consensus): add 250ms fast-poll for RNG sub-state transitions
sublimator Feb 6, 2026
893f8d5
feat(consensus): replace fake hashes with real SHAMap-backed commitSe…
sublimator Feb 6, 2026
34ff53f
feat(consensus): add UNL enforcement for RNG commit-reveal pipeline
sublimator Feb 6, 2026
1744d21
docs(consensus): explain union convergence model for RNG sets
sublimator Feb 6, 2026
4911c1b
feat(consensus): embed proposal signature proofs in RNG SHAMap entries
sublimator Feb 6, 2026
2905b05
perf(consensus): gate RNG SHAMap fetches on sub-state
sublimator Feb 6, 2026
382e6fa
fix(consensus): verify reveals match commitments and cache UNL for ob…
sublimator Feb 6, 2026
a9dffd3
fix(consensus): shorten RNG pipeline timeout to 3s for faster recovery
sublimator Feb 6, 2026
960808b
fix(consensus): skip RNG wait when quorum is impossible and base thre…
sublimator Feb 6, 2026
db3ed0c
fix(consensus): wait for all committers' reveals and fix local testne…
sublimator Feb 6, 2026
ae88fd3
feat(consensus): add dedicated reveal-phase timeout measured from pha…
sublimator Feb 6, 2026
b6811a6
feat(consensus): deterministic commitSets via expected proposers and …
sublimator Feb 6, 2026
4f009e4
fix(consensus): proceed with partial commitSet on timeout instead of …
sublimator Feb 6, 2026
bc98c58
docs(consensus): fix stale quorum comment in phaseEstablish
sublimator Feb 6, 2026
41a41ec
feat(consensus): intersect expected proposers with UNL Report and ada…
sublimator Feb 10, 2026
61a166b
feat(hooks): add dice() and random() hook APIs for consensus entropy
sublimator Feb 10, 2026
d850e74
feat(consensus): standalone synthetic entropy and ConsensusEntropy test
sublimator Feb 10, 2026
e8358a8
feat(hooks): register dice/random with WasmEdge and add hook API tests
sublimator Feb 10, 2026
79b2f9f
feat(hooks): add consensus entropy definitions to hook headers
sublimator Feb 10, 2026
c5292bf
fix(test): use large dice range to avoid deterministic collision
sublimator Feb 10, 2026
7425ab0
fix(consensus): avoid structured bindings in lambda captures
sublimator Feb 10, 2026
8f331a5
fix(consensus): harden proposal parser and guard dice(0) UB
sublimator Feb 12, 2026
94ce15d
docs(consensus): add extraction markers for guided code review
sublimator Feb 13, 2026
24e4ac1
docs(consensus): add extraction markers for remaining RNG sections
sublimator Feb 13, 2026
9eac54d
Merge remote-tracking branch 'origin/dev' into consensus-phase-entropy
sublimator Feb 17, 2026
02990eb
Merge remote-tracking branch 'origin/dev' into consensus-phase-entropy
sublimator Feb 19, 2026
908a78a
fix: regenerate hook/extern.h to match hook_api.macro ordering
sublimator Feb 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Builds/CMake/RippledCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ if (tests)
src/test/app/BaseFee_test.cpp
src/test/app/Check_test.cpp
src/test/app/ClaimReward_test.cpp
src/test/app/ConsensusEntropy_test.cpp
src/test/app/Cron_test.cpp
src/test/app/Clawback_test.cpp
src/test/app/CrossingLimits_test.cpp
Expand Down Expand Up @@ -850,6 +851,7 @@ if (tests)
#]===============================]
src/test/consensus/ByzantineFailureSim_test.cpp
src/test/consensus/Consensus_test.cpp
src/test/consensus/ExtendedPosition_test.cpp
src/test/consensus/DistributedValidatorsSim_test.cpp
src/test/consensus/LedgerTiming_test.cpp
src/test/consensus/LedgerTrie_test.cpp
Expand Down
1 change: 1 addition & 0 deletions hook/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
#define MEM_OVERLAP -43
#define TOO_MANY_STATE_MODIFICATIONS -44
#define TOO_MANY_NAMESPACES -45
#define TOO_LITTLE_ENTROPY -46
#define HOOK_ERROR_CODES
#endif //HOOK_ERROR_CODES
6 changes: 6 additions & 0 deletions hook/extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,5 +336,11 @@ prepare(
uint32_t read_ptr,
uint32_t read_len);

extern int64_t
dice(uint32_t sides);

extern int64_t
random(uint32_t write_ptr, uint32_t write_len);

#define HOOK_EXTERN
#endif // HOOK_EXTERN
1 change: 1 addition & 0 deletions hook/sfcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define sfHookExecutionIndex ((1U << 16U) + 19U)
#define sfHookApiVersion ((1U << 16U) + 20U)
#define sfHookStateScale ((1U << 16U) + 21U)
#define sfEntropyCount ((1U << 16U) + 99U)
#define sfNetworkID ((2U << 16U) + 1U)
#define sfFlags ((2U << 16U) + 2U)
#define sfSourceTag ((2U << 16U) + 3U)
Expand Down
1 change: 1 addition & 0 deletions hook/tts.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@
#define ttUNL_MODIFY 102
#define ttEMIT_FAILURE 103
#define ttUNL_REPORT 104
#define ttCONSENSUS_ENTROPY 105
Loading
Loading