diff --git a/create.contract b/create.contract index ec8b3e17f77599ee1e4e3e54e79224f687c33fd5..207a0830b36b4e5b9a1c749c6a6aa56c2b376347 100755 --- a/create.contract +++ b/create.contract @@ -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 ` diff --git a/insert.sh b/insert.sh index 809bbdbbcece5df985b84124bf3ce3d3105b6687..ec54aa43e3a38fab9fc180eab83b64cfca0b5d70 100755 --- a/insert.sh +++ b/insert.sh @@ -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 ` diff --git a/verify.sh b/verify.sh index 9cc264e341cf8e3cc81ee8047a9281454e5e6f6b..081a26f3193aa7efa0636cbc62c776be13892cd8 100755 --- a/verify.sh +++ b/verify.sh @@ -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 `