“queue limit” error

2018-04-16 14:53:55

I try to deploy a smart contract and every time i receive "queue limit" error.

Here is what i do:

Web3 = require("web3")

web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));

const bytecode = '0x606 ....

const abi = [ ....

web3.eth.personal.unlockAccount('0xa95523067A3bfF1B8aeB41F85D58C7fe2b88fde3', 'logic')

var thisContract = new web3.eth.Contract(abi, {

from: '0xa95523067A3bfF1B8aeB41F85D58C7fe2b88fde3',

gasPrice: '20000000000'

});

thisContract.deploy({ data: bytecode }).estimateGas(function(err, gas) { console.log(gas); });

2021348

thisContract.deploy({ data: bytecode }).send({

from: '0xa95523067A3bfF1B8aeB41F85D58C7fe2b88fde3',

gas: 2021348,

gasPrice: '3000000000'

},

function(error, transactionHash) {

console.log(error);

console.log(transactionHash);

console.log('function exec');

}).then(function(newContractInstance) {

console.log('Contract Instance:' + newContractInstance.o