Skip to content

Commit

Permalink
Merge pull request #1491 from evoskuil/master
Browse files Browse the repository at this point in the history
Avoid shrink_to_fit in perf critical as it may reallocate.
  • Loading branch information
evoskuil authored Jul 6, 2024
2 parents c0d0b85 + c493e69 commit 3046b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ bool transaction::create_endorsement(endorsement& out, const ec_secret& secret,

// Add the sighash type to the end of the DER signature -> endorsement.
out.push_back(sighash_flags);
out.shrink_to_fit();
////out.shrink_to_fit();
return true;
}

Expand Down

0 comments on commit 3046b83

Please sign in to comment.