Skip to content

Commit

Permalink
Merge PR #805 from 'nodech/update-checkpoints'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Mar 23, 2023
1 parent 66d9e3c commit 5bcb0c2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protocol/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ main.checkpointMap = {
* @default
*/

main.lastCheckpoint = 100000;
main.lastCheckpoint = 130000;

/**
* Reward halving interval.
Expand Down
2 changes: 2 additions & 0 deletions test/auction-reorg-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ describe('Auction Reorg', function() {
});

describe('Claim Reorg', function() {
this.timeout(10000);

const node = createNode();
const {chain, miner, cpu, blocks} = node;

Expand Down
2 changes: 2 additions & 0 deletions test/auction-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ describe('Auction', function() {
});

describe('Claim', function() {
this.timeout(10000);

const node = createNode();
const {chain, miner, cpu, blocks} = node;

Expand Down
2 changes: 2 additions & 0 deletions test/chain-checkpoints-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ describe('Checkpoints', function() {
});

it('should CLAIM and REGISTER a reserved name', async () => {
this.timeout(10000);

const claim = await wallet.fakeClaim('cloudflare');

await mineBlock(null, [claim], null, 'claim');
Expand Down
1 change: 1 addition & 0 deletions test/claim-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async function mineBlocks(n, addr) {

describe('Reserved Name Claims', function() {
this.timeout(10000);

before(async () => {
await node.open();

Expand Down
4 changes: 4 additions & 0 deletions test/mempool-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,8 @@ describe('Mempool', function() {
});

it('should handle reorg: name claim - DNSSEC timestamp', async () => {
this.timeout(10000);

// Mempool is empty
await mempool.reset();
assert.strictEqual(mempool.map.size, 0);
Expand Down Expand Up @@ -1205,6 +1207,8 @@ describe('Mempool', function() {
});

it('should handle reorg: name claim - block commitment', async () => {
this.timeout(10000);

// Mempool is empty
await mempool.reset();
assert.strictEqual(mempool.map.size, 0);
Expand Down
4 changes: 4 additions & 0 deletions test/txstart-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ describe('Disable TXs', function() {
});

it('should reject claim from mempool before txStart', async () => {
this.timeout(10000);

const claim = await wallet.fakeClaim('cloudflare');

try {
Expand Down Expand Up @@ -184,6 +186,8 @@ describe('Disable TXs', function() {
});

it('should allow claim in mempool one block before txStart', async () => {
this.timeout(10000);

const claim = await wallet.fakeClaim('cloudflare');

try {
Expand Down
2 changes: 2 additions & 0 deletions test/wallet-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2790,6 +2790,8 @@ describe('Wallet', function() {
});

it('should confirm cloudflare CLAIM', async () => {
this.timeout(10000);

// Use a fresh wallet.
const pre = await wallet.getBalance();
assert.equal(pre.tx, 0);
Expand Down

0 comments on commit 5bcb0c2

Please sign in to comment.