Skip to content

Resolve "[ADD] Allow bifrost to skip already signed TxOutItem"

Heimdall requested to merge 980-issue into develop

Related to #980 (closed)

The approach here is to take advantage of the signer local storage.

  1. When bifrost signed and broadcast a tx , it save an item into the local key value store, which key = height-hash(txOutItem) , value = 1
  2. 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

Merge request reports