Skip to content

Commit fa5c511

Browse files
author
MarcoFalke
committed
refactor: Remove unused function
1 parent 6c0a6f7 commit fa5c511

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
@@ -3130,26 +3130,6 @@ static int GetWitnessCommitmentIndex(const CBlock& block)
31303130
return commitpos;
31313131
}
31323132

3133-
// Compute at which vout of the block's coinbase transaction the signet
3134-
// signature occurs, or -1 if not found.
3135-
static int GetSignetSignatureIndex(const CBlock& block)
3136-
{
3137-
if (!block.vtx.empty()) {
3138-
for (size_t o = 0; o < block.vtx[0]->vout.size(); o++) {
3139-
if (block.vtx[0]->vout[o].scriptPubKey.size() >= 68 // at minimum 64 byte signature plus script/header data
3140-
&& block.vtx[0]->vout[o].scriptPubKey[0] == OP_RETURN // unspendable
3141-
&& block.vtx[0]->vout[o].scriptPubKey[1] == block.vtx[0]->vout[o].scriptPubKey.size() - 1 // push the rest
3142-
&& block.vtx[0]->vout[o].scriptPubKey[2] == 0xec // 's' ^ 0x9f
3143-
&& block.vtx[0]->vout[o].scriptPubKey[3] == 0xc7 // 'i' ^ 0xae
3144-
&& block.vtx[0]->vout[o].scriptPubKey[4] == 0xda // 'g' ^ 0xbd
3145-
&& block.vtx[0]->vout[o].scriptPubKey[5] == 0xa2) { // 'n' ^ 0xcc
3146-
return (int)o;
3147-
}
3148-
}
3149-
}
3150-
return -1;
3151-
}
3152-
31533133
void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams)
31543134
{
31553135
int commitpos = GetWitnessCommitmentIndex(block);

0 commit comments

Comments
 (0)