mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
Remove unused var totalInputs
This commit is contained in:
parent
46584fa65a
commit
2da22d6d14
@ -74,8 +74,6 @@ func (btb *blockTemplateBuilder) selectTransactions(candidateTxs []*candidateTx)
|
|||||||
usedP += candidateTx.p
|
usedP += candidateTx.p
|
||||||
}
|
}
|
||||||
|
|
||||||
totalInputs := 0
|
|
||||||
|
|
||||||
selectedTxs := make([]*candidateTx, 0)
|
selectedTxs := make([]*candidateTx, 0)
|
||||||
for len(candidateTxs)-usedCount > 0 {
|
for len(candidateTxs)-usedCount > 0 {
|
||||||
// Rebalance the candidates if it's required
|
// Rebalance the candidates if it's required
|
||||||
@ -145,7 +143,6 @@ func (btb *blockTemplateBuilder) selectTransactions(candidateTxs []*candidateTx)
|
|||||||
// save the masses, fees, and signature operation counts to the
|
// save the masses, fees, and signature operation counts to the
|
||||||
// result.
|
// result.
|
||||||
selectedTxs = append(selectedTxs, selectedTx)
|
selectedTxs = append(selectedTxs, selectedTx)
|
||||||
totalInputs += len(selectedTx.Inputs)
|
|
||||||
txsForBlockTemplate.totalMass += selectedTx.Mass
|
txsForBlockTemplate.totalMass += selectedTx.Mass
|
||||||
txsForBlockTemplate.totalFees += selectedTx.Fee
|
txsForBlockTemplate.totalFees += selectedTx.Fee
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user