Local test net
- https://github.com/Capgemini-AIE/ethereum-docker
- https://capgemini.github.io/blockchain/ethereum-docker-compose/
Once this is up, vai the geth cli
eth.defaultAccount = eth.accounts[0]
sets the default account when abi transactions require gaspersonal.unlockAccount(address, "password", inUnlockPeriod)
->personal.unlockAccount(eth.accounts[0], "", 0)
unlocks the account so that transactions requiring gas can be executed
With the current version of Docker OSX, the timezone files need to be included. Tried a couple of configurations here but it seems the simplest solution for now is to link the files directly e.g.
volumes:
- ./files/password:/root/files/password:ro
- ./files/genesis.json:/root/files/genesis.json:ro
- ./files/keystore:/root/.ethereum/devchain/keystore:rw
- /usr/share/zoneinfo/Australia/Sydney:/etc/localtime:ro
Simplest way Ive found to setup a local devchain is to use ethereum-docker.
Another testnet article https://souptacular.gitbooks.io/ethereum-tutorials-and-tips-by-hudson/content/private-chain.html Dapp Tools for Local Dev https://dapp.tools/seth/
https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html
Trie https://github.com/chriseth/patricia-trie/blob/master/patricia.sol https://github.com/ethereum/wiki/wiki/Patricia-Tree
Linked Hashtable https://github.com/sagivo/solidity-utils/blob/master/contracts/lib/Dictionary.sol https://sagivo.com/the-missing-dictionary-in-solidity-67b15e0c6d94