Skip to content
Snippets Groups Projects
Commit 4d4da6f5 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

We do not need to mention an account and password when attaching to our node via IPC.

parent fcbf8e6c
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ console.log( pubcontract.address );
EOT
echo '*** Creating contract. Will take 16-30 seconds'
cleanup out1
geth --datadir network5445/node1 --password /dev/null --unlock $account --exec 'loadScript("g1.js")' attach ipc:network5445/node1/geth.ipc > out1
geth --datadir network5445/node1 --exec 'loadScript("g1.js")' attach ipc:network5445/node1/geth.ipc > out1
if [ ` wc -l < out1 ` = 2 -a `tail -1 < out1` = "true" ]
then
addr=` head -1 < out1 `
......
......@@ -20,7 +20,7 @@ var thecontract = mycontract.at("$contract");
console.log ( thecontract.storeDocument.sendTransaction( "${in}", {from: eth.accounts[0], gas: 1000000} ) )
EOT
cleanup out1
geth --datadir network5445/node1 --password /dev/null --unlock $account --exec 'loadScript("g1.js")' attach ipc:network5445/node1/geth.ipc > out1
geth --datadir network5445/node1 --exec 'loadScript("g1.js")' attach ipc:network5445/node1/geth.ipc > out1
if [ ` wc -l < out1 ` = 2 -a `tail -1 < out1` = "true" ]
then
conf=` head -1 < out1 `
......
......@@ -20,7 +20,7 @@ var thecontract = mycontract.at("$contract");
console.log ( thecontract.checkDocument.call( "${in}" ) )
EOT
cleanup out1
geth --datadir network5445/node1 --password /dev/null --unlock $account --exec 'loadScript("g1.js")' attach ipc:network5445/node1/geth.ipc > out1
geth --datadir network5445/node1 --exec 'loadScript("g1.js")' attach ipc:network5445/node1/geth.ipc > out1
if [ ` wc -l < out1 ` = 2 -a `tail -1 < out1` = "true" ]
then
block=` head -1 < out1 `
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment