Skip to content

Commit 9d096b6

Browse files
committed
spelling fix: uncommited -> uncommitted
1 parent 96c41e0 commit 9d096b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,7 @@ static int GetWitnessCommitmentIndex(const CBlock& block)
34143414
return commitpos;
34153415
}
34163416

3417-
void UpdateUncommitedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams)
3417+
void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams)
34183418
{
34193419
int commitpos = GetWitnessCommitmentIndex(block);
34203420
static const std::vector<unsigned char> nonce(32, 0x00);
@@ -3456,7 +3456,7 @@ std::vector<unsigned char> GenerateCoinbaseCommitment(CBlock& block, const CBloc
34563456
block.vtx[0].UpdateHash();
34573457
}
34583458
}
3459-
UpdateUncommitedBlockStructures(block, pindexPrev, consensusParams);
3459+
UpdateUncommittedBlockStructures(block, pindexPrev, consensusParams);
34603460
return commitment;
34613461
}
34623462

src/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& pa
467467
bool RewindBlockIndex(const CChainParams& params);
468468

469469
/** Update uncommitted block structures (currently: only the witness nonce). This is safe for submitted blocks. */
470-
void UpdateUncommitedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams);
470+
void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams);
471471

472472
/** Produce the necessary coinbase commitment for a block (modifies the hash, don't call for mined blocks). */
473473
std::vector<unsigned char> GenerateCoinbaseCommitment(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams);

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ UniValue submitblock(const UniValue& params, bool fHelp)
733733
LOCK(cs_main);
734734
BlockMap::iterator mi = mapBlockIndex.find(block.hashPrevBlock);
735735
if (mi != mapBlockIndex.end()) {
736-
UpdateUncommitedBlockStructures(block, mi->second, Params().GetConsensus());
736+
UpdateUncommittedBlockStructures(block, mi->second, Params().GetConsensus());
737737
}
738738
}
739739

0 commit comments

Comments
 (0)