Skip to content

Commit

Permalink
Merge PR #842 from 'rithvikvibhu/fix-bip9-signalling'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Aug 26, 2023
2 parents 500d638 + ab0fa43 commit 6dc5249
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/blockchain/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -3582,7 +3582,7 @@ class Chain extends AsyncEmitter {
const state = await this.getState(prev, deployment);

if (state === thresholdStates.LOCKED_IN
|| (state === thresholdStates.STARTED && deployment.force)) {
|| state === thresholdStates.STARTED) {
version |= 1 << deployment.bit;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/mining/miner.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class MinerOptions {
this.chain = null;
this.mempool = null;

this.version = 0;
this.version = -1;
this.addresses = [];
this.coinbaseFlags = Buffer.from(`mined by ${pkg.name}`, 'ascii');
this.preverify = false;
Expand Down
4 changes: 4 additions & 0 deletions test/chain-icann-lockup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,10 @@ async function mineBlock(node, opts = {}) {

const job = await miner.cpu.createJob(chain.tip);

// opt out of all (esp. `hardening`) as
// some domains in this test still use RSA-1024
job.attempt.version = 0;

if (setICANNLockup)
job.attempt.version |= (1 << deployments[SOFT_FORK_NAME].bit);

Expand Down

0 comments on commit 6dc5249

Please sign in to comment.