mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user