aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2019-03-18 20:06:04 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2019-03-18 20:06:11 +0100
commite45b7f20e651898c5b476c2364fd9d1fd583f3af (patch)
treeb94d55391da86c7b492f480ffd10cc07dcf288fc /src
parentc033c4b5cef89a654e4d9d5c5f9bd823871b068b (diff)
parentfa5c511a832632b964617776eb6c3535bb2bd893 (diff)
downloadbitcoin-e45b7f20e651898c5b476c2364fd9d1fd583f3af.tar.xz
Merge #15618: refactor: Remove unused function
fa5c511a832632b964617776eb6c3535bb2bd893 refactor: Remove unused function (MarcoFalke) Pull request description: Oversight of kallewoof and mine in https://github.com/bitcoin/bitcoin/pull/13541#discussion_r266555476 Tree-SHA512: 2fd3c4ecde5d3c58b113aa58d606976ceb4998358bde0547ead8e83df210722fa9821d2c88b717bdd190ef71593cd9c0154c3a5d3f2ccc3af8cbf6c36aaa6d45
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 97f51d2968..a9b5bcf4a4 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -3159,26 +3159,6 @@ static int GetWitnessCommitmentIndex(const CBlock& block)
return commitpos;
}
-// Compute at which vout of the block's coinbase transaction the signet
-// signature occurs, or -1 if not found.
-static int GetSignetSignatureIndex(const CBlock& block)
-{
- if (!block.vtx.empty()) {
- for (size_t o = 0; o < block.vtx[0]->vout.size(); o++) {
- if (block.vtx[0]->vout[o].scriptPubKey.size() >= 68 // at minimum 64 byte signature plus script/header data
- && block.vtx[0]->vout[o].scriptPubKey[0] == OP_RETURN // unspendable
- && block.vtx[0]->vout[o].scriptPubKey[1] == block.vtx[0]->vout[o].scriptPubKey.size() - 1 // push the rest
- && block.vtx[0]->vout[o].scriptPubKey[2] == 0xec // 's' ^ 0x9f
- && block.vtx[0]->vout[o].scriptPubKey[3] == 0xc7 // 'i' ^ 0xae
- && block.vtx[0]->vout[o].scriptPubKey[4] == 0xda // 'g' ^ 0xbd
- && block.vtx[0]->vout[o].scriptPubKey[5] == 0xa2) { // 'n' ^ 0xcc
- return (int)o;
- }
- }
- }
- return -1;
-}
-
void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams)
{
int commitpos = GetWitnessCommitmentIndex(block);