Skip to content

Commit e45b7f2

Browse files
committed
Merge #15618: refactor: Remove unused function
fa5c511 refactor: Remove unused function (MarcoFalke) Pull request description: Oversight of kallewoof and mine in bitcoin/bitcoin#13541 (comment) Tree-SHA512: 2fd3c4ecde5d3c58b113aa58d606976ceb4998358bde0547ead8e83df210722fa9821d2c88b717bdd190ef71593cd9c0154c3a5d3f2ccc3af8cbf6c36aaa6d45
2 parents c033c4b + fa5c511 commit e45b7f2

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/validation.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,26 +3159,6 @@ static int GetWitnessCommitmentIndex(const CBlock& block)
31593159
return commitpos;
31603160
}
31613161

3162-
// Compute at which vout of the block's coinbase transaction the signet
3163-
// signature occurs, or -1 if not found.
3164-
static int GetSignetSignatureIndex(const CBlock& block)
3165-
{
3166-
if (!block.vtx.empty()) {
3167-
for (size_t o = 0; o < block.vtx[0]->vout.size(); o++) {
3168-
if (block.vtx[0]->vout[o].scriptPubKey.size() >= 68 // at minimum 64 byte signature plus script/header data
3169-
&& block.vtx[0]->vout[o].scriptPubKey[0] == OP_RETURN // unspendable
3170-
&& block.vtx[0]->vout[o].scriptPubKey[1] == block.vtx[0]->vout[o].scriptPubKey.size() - 1 // push the rest
3171-
&& block.vtx[0]->vout[o].scriptPubKey[2] == 0xec // 's' ^ 0x9f
3172-
&& block.vtx[0]->vout[o].scriptPubKey[3] == 0xc7 // 'i' ^ 0xae
3173-
&& block.vtx[0]->vout[o].scriptPubKey[4] == 0xda // 'g' ^ 0xbd
3174-
&& block.vtx[0]->vout[o].scriptPubKey[5] == 0xa2) { // 'n' ^ 0xcc
3175-
return (int)o;
3176-
}
3177-
}
3178-
}
3179-
return -1;
3180-
}
3181-
31823162
void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams)
31833163
{
31843164
int commitpos = GetWitnessCommitmentIndex(block);

0 commit comments

Comments
 (0)