Resolve "[ADD] Allow bifrost to skip already signed TxOutItem"
Related to #980 (closed)
The approach here is to take advantage of the signer local storage.
- When bifrost signed and broadcast a tx , it save an item into the local key value store, which key =
height-hash(txOutItem)
, value = 1 - When bifrost retrieve a list of txout item from thornode , it double check the local store before it sign, logic to check is key =
previousHeight-hash(txOutItem)
, previousHeight is current thorchain block height - 300(SigningTransactionPeriod) , if it exist , then the txoutitem will be ignored
Edited by Heimdall