mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-192] Add method to compute confirmations of a single transaction (#306) * [NOD-192] Implemented txConfirmations. * [NOD-192] Renamed acceptedBy -> acceptingBlock and ConfirmationsByHash -> BlockConfirmationsByHash. * [NOD-194 + NOD-199] Update all JSON-RPC methods to use new methods for computing confirmations + Remove the x1.5 factor when counting confirmations in txgen (#309) * [NOD-194] Connected JSON-RPC commands with new confirmations logic. * [NOD-194] Fixed failing tests. * [NOD-194] Removed x1.5 from isTxMatured. * [NOD-194] Made isTxMatured panic if it receives nil confirmations. * [NOD-194] Added isInMempool to RPC methods that require it. * [NOD-194] Fixed a typo. * [NOD-194] Made the declaration of isInMempool more clear. * [NOD-194] Removed some unnecessary complexity from isTxMatured. * [NOD-193] Update Tx-Index to accomodate correct Confirmations structure (#308) * [NOD-193] Uploaded BlockID to be uint64 in txIndex and addrIndex. * [NOD-193] Removed the inclusion of current block transactions to txsAcceptanceData. * [NOD-193] Implemented writing to the tx index txs with the virtual as the accepting block. * [NOD-193] Added test for txs accepted by the virtual block. * [NOD-193] Removed the requirement for subnetwork registry transactions to be accepted. * [NOD-194] Made in-memory the txsAcceptedByVirtual part of txIndex. * [NOD-193] Optimized txsAcceptedByVirtual initialization. * [NOD-193] Fixed weird loop in txsAcceptedByVirtual initialization. * [NOD-190] Fixed merge errors.