Repository navigation
Optimize ABCI Response Information and flag to save ABCI results #8028 #8946 - #9090
Conversation
|
I would remove #9054 from the list of issues closed by this PR, as it is WIP (i.e., more dependencies can be linked). |
I think that issue is pretty tightly scoped. I don't think there will be anything else pinned to it but if everyone else wants, we can just reference it instead of closing it |
|
I based my observation on this comment, and the Thane's reply to it: |
There was a problem hiding this comment.
Another subtlety that we should document somewhere is that changing this setting is a one-way operation: If you have responses enabled and disable them, you can't safely "re-enable" them later, as the key layout is different for the two modes (and of course, there's no way to recover "missed" heights).
Also, I wonder: Do we need to provide some kind of migration for when these are first turned on, to ensure the existing per-height key is converted to be a single global key?
Can you elaborate. In my head, I don't see why you couldn't re-enable them. It will start persisting responses from that height onwards. |
I think that makes sense
Nope just this, |
mark-rushakoff
left a comment
There was a problem hiding this comment.
I mostly just left some style comments as I am still building context on the codebase.
williambanfield
left a comment
There was a problem hiding this comment.
Mostly style comments, in general the logic looks correct.
*backport of sam/abci-responses Co-authored-by: William Banfield <[email protected]>
*backport of sam/abci-responses Co-authored-by: William Banfield <[email protected]>
*backport of sam/abci-responses Co-authored-by: William Banfield <[email protected]>
*backport of sam/abci-responses Co-authored-by: William Banfield <[email protected]>
*backport of sam/abci-responses Co-authored-by: William Banfield <[email protected]>
* Backport of sam/abci-responses (#9090) (#9159) Signed-off-by: Thane Thomson <[email protected]> Co-authored-by: William Banfield <[email protected]> Co-authored-by: Thane Thomson <[email protected]>
Closes: #8028, #8946
Adds a flag to the config.go which enables discarding of abci responses. This flag is used when saving and loading the abciresponses to overwrite the current abciresponses with the last response. This way the node operator can decide if they would like to save or discard the responses for efficiency purposes.
(@cmwaters) NOTE: A different solution is used for ABCI++ branches whereby the last ABCI responses are not needed for crash recovery