From 4d4da6f5d810e58fba529152a129eed1d0b3c818 Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@nic.ar>
Date: Mon, 25 Jun 2018 18:12:13 -0300
Subject: [PATCH] We do not need to mention an account and password when
 attaching to our node via IPC.

---
 create.contract | 2 +-
 insert.sh       | 2 +-
 verify.sh       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/create.contract b/create.contract
index ec8b3e1..207a083 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 809bbdb..ec54aa4 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 9cc264e..081a26f 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 `
-- 
GitLab