35985/migrations-exceeded-the-block-limit-with-a-gas-value-you-set
Please help me solve this error while migrating truffle:
1_initial_migration.js ====================== Deploying 'Migrations' ---------------------- Error: *** Deployment Failed *** "Migrations" exceeded the block limit (with a gas value you set). * Block limit: 2582365 * Gas sent: 20000000 * Try: + Sending less gas. + Setting a higher network block limit if you are on a private network or test client (like ganache). at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-deployer/src/deployment.js:364:1 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) Truffle v5.0.2 (core: 5.0.2)
In the error you have posted, in this part:
* Block limit: 2582365 * Gas sent: 20000000
you can see that gas is more than block limit. To solve this, you have to reduce the gas in truffle.js file.
Like I mentioned in the answer,open your truffle.js file with a text editor and decrease the gas value.
Technically, it's not difficult at all, all ...READ MORE
Bitcoin mining means validation of a block ...READ MORE
Going through your code, I noticed that you ...READ MORE
Here you have some articles about bitcoin ...READ MORE
Yes, {from: thesponsor, value: 10000000, gas: 3000000} ...READ MORE
If you are talking about the public ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
recipes is a dynamic storage array. You need ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.