mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Code simplifications after CTransaction::GetHash() caching
This commit is contained in:
parent
4949004d68
commit
d38da59bf6
12 changed files with 67 additions and 78 deletions
|
|
@ -254,8 +254,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|||
continue;
|
||||
|
||||
CTxUndo txundo;
|
||||
uint256 hash = tx.GetHash();
|
||||
UpdateCoins(tx, state, view, txundo, pindexPrev->nHeight+1, hash);
|
||||
const uint256& hash = tx.GetHash();
|
||||
UpdateCoins(tx, state, view, txundo, pindexPrev->nHeight+1);
|
||||
|
||||
// Added
|
||||
pblock->vtx.push_back(tx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue