avoid calling SpendBundle.fees() a second time in peak post processing 2. This is an expensive function, that's why we cache its result (#9434)

This commit is contained in:
Arvid Norberg
2021-12-01 09:41:50 -08:00
committed by GitHub
parent fdaadc1ff9
commit b91a0eaddc
+1 -1
View File
@@ -1298,7 +1298,7 @@ class FullNode:
new_tx = full_node_protocol.NewTransaction(
spend_name,
mempool_item.cost,
uint64(bundle.fees()),
fees,
)
msg = make_msg(ProtocolMessageTypes.new_transaction, new_tx)
await self.server.send_to_all([msg], NodeType.FULL_NODE)