From 024f3a19a3baa2a88157340472a242cf33ecc5f0 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 28 Jun 2018 09:30:37 -0400 Subject: [PATCH 1/2] Increasing gasLimit --- app/components/simple-voting/AddPoll.js | 2 +- app/components/simple-voting/PollsList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/simple-voting/AddPoll.js b/app/components/simple-voting/AddPoll.js index 1c5ff00..58381b2 100644 --- a/app/components/simple-voting/AddPoll.js +++ b/app/components/simple-voting/AddPoll.js @@ -99,7 +99,7 @@ const AddPoll = withFormik({ toSend.estimateGas() .then(gasEstimated => { console.log("addPoll gas estimated: "+gasEstimated); - return toSend.send({gas: gasEstimated + 1000}); + return toSend.send({gas: gasEstimated + 100000}); }) .then(res => { console.log('sucess:', res); diff --git a/app/components/simple-voting/PollsList.js b/app/components/simple-voting/PollsList.js index fa714cd..2550faf 100644 --- a/app/components/simple-voting/PollsList.js +++ b/app/components/simple-voting/PollsList.js @@ -34,7 +34,7 @@ class Poll extends Component { toSend.estimateGas() .then(gasEstimated => { console.log("voting gas estimated: " + gasEstimated); - return toSend.send({gas: gasEstimated + 1000}); + return toSend.send({gas: gasEstimated + 100000}); }) .then(res => { console.log('sucess:', res); From ce5143aa709331eefbf5e6229a54cbb86bccbe3f Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 28 Jun 2018 10:16:12 -0400 Subject: [PATCH 2/2] Updated blockchain.json with syncModes --- config/blockchain.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/blockchain.json b/config/blockchain.json index 638c816..3e17281 100644 --- a/config/blockchain.json +++ b/config/blockchain.json @@ -24,7 +24,7 @@ "testnet": { "enabled": true, "networkType": "testnet", - "light": true, + "syncMode": "light", "rpcHost": "localhost", "rpcPort": 8545, "rpcCorsDomain": "http://localhost:8000", @@ -35,7 +35,7 @@ "livenet": { "enabled": true, "networkType": "livenet", - "light": true, + "syncMode": "light", "rpcHost": "localhost", "rpcPort": 8545, "rpcCorsDomain": "http://localhost:8000",