stampchain-io / btc_stamps

Bitcoin Stamps Indexer
https://stampchain.io
GNU Affero General Public License v3.0
9 stars 2 forks source link

Fix tx_index order in StampTableV4 (& SRC20) vs stamp # #258

Closed reinamora137 closed 1 month ago

reinamora137 commented 1 month ago

when the txhash_list is processed through the multithreading in concurrent futures the current order of transactions is staying in order as they were in the block. however the way the tx_index is being assigned can be somewhat random depending on thread execution. this makes tx_index unordered as per the block ordering and propogates into the ledger hash for txlist causing mismatches upon subsequent indexes because the tx_index may move around.

Fix pending final validation in feature branch