You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Available examples for truffle migrate focus on using a development blockchain like ganache or testrpc. An example should be given of deployment to a private geth node.
Specifically, this documentation addition should demonstrate how to connect to geth (examples show use of the HTTP RPC endpoint Geth can provide) while allowing an account to be unlocked sufficiently for truffle to do migrations. This should be with Geth >1.9.0, followingGeth PR 17037 which prevents unlocking accounts when RPC/HTTP access to the node is enabled. The example should show instructions demonstrating a truffle migrate without the error authentication needed: password or unlock using Geth >1.9.0 as the blockchain node.
The text was updated successfully, but these errors were encountered:
For anyone hoping to do a PR or find a solution on this, the instructions are roughly:
Use a Hierarchical Deterministic (HD) wallet provider such as MyEtherWallet to generate an HD wallet mnemonic. It may not be best for security to use one's primary MetaMask wallet mnemonic here.
Get the address of at least one account from that wallet, e.g. the first one.
Run geth with RPC enabled and without unlocking any accounts; make sure the RPC address is reflected in truffle-config.js
Make sure that address is funded (and sufficiently privileged to run any transaction in the migration, if applicable) before attempting to run a migration, whether from the genesis block or from subsequent transactions, on the chain you intend to deploy on.
Install HDWalletProvider and specify its use in truffle-config.js per documentation in that repo, with access to the same mnemonic and account index.
Issue
Available examples for
truffle migrate
focus on using a development blockchain likeganache
ortestrpc.
An example should be given of deployment to a privategeth
node.Specifically, this documentation addition should demonstrate how to connect to geth (examples show use of the HTTP RPC endpoint Geth can provide) while allowing an account to be unlocked sufficiently for truffle to do migrations. This should be with Geth >1.9.0, following Geth PR 17037 which prevents unlocking accounts when RPC/HTTP access to the node is enabled. The example should show instructions demonstrating a
truffle migrate
without the errorauthentication needed: password or unlock
using Geth >1.9.0 as the blockchain node.The text was updated successfully, but these errors were encountered: