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
Add an internal representation of recent blocks to Baron's database. type: block contains at least...
blockhash
previous blockhash
next blockhash
array of relevant incoming transactions contained within this block
height
When a block is X confirmations in the past there is no reason to keep it any longer. Allow for a configurable pruning threshold?
Instead of gettransaction, the # of confirmations can be calculated from latest block height minus the height of the block containing the transaction. The status of previous transactions need not be queried again if their blockhash remains valid (within the best chain).
If a known block becomes invalid, walk to previous until a valid block is found. Any Baron-relevant transactions within blocks that have become invalid have their status changed as part of a reorg.
The text was updated successfully, but these errors were encountered:
If we delete older blocks we should store the block height within the payment as well. This will allow us to continue to count confirmations after deleting older blocks.
Proposed Details
type: block
contains at least...gettransaction
, the # of confirmations can be calculated from latest block height minus the height of the block containing the transaction. The status of previous transactions need not be queried again if their blockhash remains valid (within the best chain).The text was updated successfully, but these errors were encountered: