BastienFaivre / twins-attack

0 stars 0 forks source link

Test blockchain #4

Closed BastienFaivre closed 1 year ago

BastienFaivre commented 1 year ago

Make sure that the nodes are running correctly by trying to send some transactions with geth.

BastienFaivre commented 1 year ago

Command to enter the Javascript console:

./install/quorum/build/bin/geth attach ~/deploy/quorum-ibft/n0/geth.ipc
BastienFaivre commented 1 year ago

The accounts are not there. Apparently, some people are having the same issue here

BastienFaivre commented 1 year ago

The account are not imported by default on the node, a script that achieve this will be created.

BastienFaivre commented 1 year ago
personal.unlockAccount(eth.accounts[0],'0')
personal.unlockAccount(eth.accounts[1],'1')
eth.sendTransaction({from:eth.accounts[0],to:eth.accounts[1],value:web3.toWei(1e+29,'ether')})
web3.fromWei(eth.getBalance(eth.accounts[0]))
web3.fromWei(eth.getBalance(eth.accounts[1]))
BastienFaivre commented 1 year ago

The blockchain is working properly!