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
We need to create a changefeed that listens to deletes in the backlog table. Deletes in the backlog should only be allowed if the transactions were included in a block in the bigchain table.
The voter code right now deletes the transactions as it processes them which means that there will a some time gap between the time a transaction is deleted and the time the block makes it to the bigchain. I can think of two solutions for this:
When a transaction is deleted cache it and check the bigchain table for the transaction after a timeout period (e.g. 30 seconds). If after the timeout period the transaction is not in the bigchain re-insert the transaction in the backlog.
The node creating the block first waits for the block to be written to the bigchain and them deletes the transactions from the backlog.
The second solution seems more robust since it does not rely on a timeout period but it requires changes to the voter process
The text was updated successfully, but these errors were encountered:
We need to create a changefeed that listens to deletes in the
backlog
table. Deletes in thebacklog
should only be allowed if the transactions were included in a block in thebigchain
table.The voter code right now deletes the transactions as it processes them which means that there will a some time gap between the time a transaction is deleted and the time the block makes it to the
bigchain
. I can think of two solutions for this:bigchain
table for the transaction after a timeout period (e.g. 30 seconds). If after the timeout period the transaction is not in thebigchain
re-insert the transaction in the backlog.bigchain
and them deletes the transactions from thebacklog
.The second solution seems more robust since it does not rely on a timeout period but it requires changes to the voter process
The text was updated successfully, but these errors were encountered: