File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -3130,26 +3130,6 @@ static int GetWitnessCommitmentIndex(const CBlock& block)
3130
3130
return commitpos;
3131
3131
}
3132
3132
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
-
3153
3133
void UpdateUncommittedBlockStructures (CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams)
3154
3134
{
3155
3135
int commitpos = GetWitnessCommitmentIndex (block);
You can’t perform that action at this time.
0 commit comments