Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miguel Montes
nucleo
Commits
4d4da6f5
Commit
4d4da6f5
authored
7 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
create.contract
+1
-1
1 addition, 1 deletion
create.contract
insert.sh
+1
-1
1 addition, 1 deletion
insert.sh
verify.sh
+1
-1
1 addition, 1 deletion
verify.sh
with
3 additions
and
3 deletions
create.contract
+
1
−
1
View file @
4d4da6f5
...
...
@@ -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
`
...
...
This diff is collapsed.
Click to expand it.
insert.sh
+
1
−
1
View file @
4d4da6f5
...
...
@@ -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
`
...
...
This diff is collapsed.
Click to expand it.
verify.sh
+
1
−
1
View file @
4d4da6f5
...
...
@@ -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
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment