Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Update default to Istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Dec 10, 2019
1 parent 66b6dd0 commit 98b5837
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/blockchain_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const defaultOptions = {
defaultTransactionGasLimit: "0x15f90",
time: null,
debug: false,
hardfork: "petersburg",
hardfork: "istanbul",
allowUnlimitedContractSize: false
};

Expand Down
2 changes: 1 addition & 1 deletion lib/database/txserializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const decode = function(json, done) {
comment: "Local test network"
};

let hardfork = "petersburg";
let hardfork = "istanbul";
if (json._common) {
hardfork = json._common.hardfork;
commonOptions.chainId = json._common.chainId;
Expand Down
2 changes: 1 addition & 1 deletion test/block-tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe("Block Tags", function() {
);
assert.strictEqual(
block.receiptsRoot,
"0x8183b8e21f87a0d39954f7b6f3025c9a8e26c38d47976c39df4d2d690b49fc74",
"0xfc83d70860b2ea62a20c8a9618b615548fa0cf6ddd9a456994f53652c51725df",
"Should produce correct receiptsRoot"
);
});
Expand Down
6 changes: 3 additions & 3 deletions test/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ const tests = function(web3) {
const startingBlockNumber = await web3.eth.getBlockNumber();

const gasEstimate = await web3.eth.estimateGas(txData);
assert.strictEqual(gasEstimate, 27795);
assert.strictEqual(gasEstimate, 27535);

const blockNumber = await web3.eth.getBlockNumber();

Expand All @@ -976,7 +976,7 @@ const tests = function(web3) {
txData.from = "0x1234567890123456789012345678901234567890";

const result = await web3.eth.estimateGas(txData);
assert.strictEqual(result, 27795);
assert.strictEqual(result, 27535);
});

it("should estimate gas when no account is listed (eth_estimateGas)", async function() {
Expand All @@ -985,7 +985,7 @@ const tests = function(web3) {
delete txData.from;

const result = await web3.eth.estimateGas(txData);
assert.strictEqual(result, 27795);
assert.strictEqual(result, 27535);
});

it("should send a state changing transaction (eth_sendTransaction)", async function() {
Expand Down

0 comments on commit 98b5837

Please sign in to comment.