You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Value validation can downgrade a structurally valid value to an invalid one on reboot #5339
During a futurenet test, we rebooted a validator while it was voting on a non-existent tx set, but before it voted to skip that tx set. Upon restart, the node continued where it left off, but crashed on emitting a ballot referring to that tx set because a validity check failed. I believe this is due to the getTxSetWaitingTime check in this conditional. The intent of this check was to only allow values we had requested to proceed through SCP. However, data on tx set waiting times is not persisted like SCP messages are, and so this check fails on restart and the node crashes because it thinks it's voting for an invalid value (instead of a "structurally valid" value).
I think we probably want to solve this by removing the getTxSetWaitingTime check. I suspect this is left over from when wee had the distinction between kAwaitingDownload and kValidForPrepare, and there was (or should have been) a separate arm to distinguish the two cases. The change probably accidentally folded the kValidForPrepare case into the kInvalidValue case instead of the kStructurallyValidValue case. The value is certainly structurally valid regardless of whether we've requested the tx set or not.
Before committing to removing this check, we should think through the consequences a little more.
Activity
Fix `kStructurallyValidValue` validation downgrade after reboot
marta-lokhova commentedon Jul 20, 2026
to clarify: the tx set existed on the network, but the local node did not have it. Is that right?
which assert was it? is this related to kInvalidValue being emitted here?
stellar-core/src/herder/HerderSCPDriver.cpp
Line 481 in d6f2546
bboston7 commentedon Jul 22, 2026
No, it didn't exist on the network. There's a testing-only flag that causes round leaders to nominate non-existent values to trigger skip ledgers. That's what we were using for the test that triggered this. Otherwise there's no way we'd see any skip ledgers on futurenet.
No, it's this assertion in the
ApplicableTxSetFrameconstructor:stellar-core/src/herder/TxSetFrame.cpp
Line 2025 in d6f2546
TxSetXDRFrame::prepareForApplycalls into this at the end of the function.Fix `kStructurallyValidValue` validation downgrade after reboot
Fix `kStructurallyValidValue` validation downgrade after reboot
Fix `kStructurallyValidValue` validation downgrade after reboot
Fix `kStructurallyValidValue` validation downgrade after reboot (stel…