File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -513,24 +513,6 @@ size_t BRTransactionSize(const BRTransaction *tx)
513513 return size ;
514514}
515515
516- // the amount of the transaction fee for tx
517- uint64_t BRTransactionFee (const BRTransaction * tx )
518- {
519- uint64_t amount = 0 ;
520-
521- assert (tx != NULL );
522-
523- for (size_t i = 0 ; tx && i < tx -> inCount ; i ++ ) {
524- amount += tx -> inputs [i ].amount ;
525- }
526-
527- for (size_t i = 0 ; tx && i < tx -> outCount && amount != UINT64_MAX ; i ++ ) {
528- amount = (tx -> outputs [i ].amount <= amount ) ? amount - tx -> outputs [i ].amount : UINT64_MAX ;
529- }
530-
531- return amount ;
532- }
533-
534516// minimum transaction fee needed for tx to relay across the bitcoin network
535517uint64_t BRTransactionStandardFee (const BRTransaction * tx )
536518{
Original file line number Diff line number Diff line change @@ -122,9 +122,6 @@ void BRTransactionShuffleOutputs(BRTransaction *tx);
122122
123123// size in bytes if signed, or estimated size assuming compact pubkey sigs
124124size_t BRTransactionSize (const BRTransaction * tx );
125-
126- // the amount of the transaction fee for tx
127- uint64_t BRTransactionFee (const BRTransaction * tx );
128125
129126// minimum transaction fee needed for tx to relay across the bitcoin network
130127uint64_t BRTransactionStandardFee (const BRTransaction * tx );
You can’t perform that action at this time.
0 commit comments