Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
blockchain
nucleo
Commits
de0eaf7b
Commit
de0eaf7b
authored
5 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Moving genesis block creation back into libbfa.sh
parent
3b4684f8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/generate-genesis-block.sh
+0
-12
0 additions, 12 deletions
bin/generate-genesis-block.sh
bin/libbfa.sh
+7
-2
7 additions, 2 deletions
bin/libbfa.sh
with
7 additions
and
14 deletions
bin/generate-genesis-block.sh
deleted
100755 → 0
+
0
−
12
View file @
3b4684f8
#!/bin/bash -x
# Robert Martin-Legene <robert@nic.ar>
if
[
-z
"
${
BFAHOME
}
"
]
;
then
echo
"
\$
BFAHOME not set. Did you source bfa/bin/env ?"
>
&2
;
exit
1
;
fi
source
${
BFAHOME
}
/bin/libbfa.sh
||
exit
1
if
[
-d
"
${
BFANODEDIR
}
/geth/chaindata"
]
then
mkdir
-p
"
${
BFANODEDIR
}
"
echo
"Node is not initialised. Initialising with genesis."
geth
--config
"
${
BFANETWORKDIR
}
/config.toml"
--cache
0 init
"
${
BFANETWORKDIR
}
/genesis.json"
fi
This diff is collapsed.
Click to expand it.
bin/libbfa.sh
+
7
−
2
View file @
de0eaf7b
...
...
@@ -192,8 +192,13 @@ function bfainit
echo
"Unknown socket type. Supported types are http, ws, ipc"
>
&2
exit
1
esac
#
generate-genesis-block.sh
# Init the blockchain with the genesis block
if
[
-d
"
${
BFANODEDIR
}
/geth/chaindata"
]
then
mkdir
-p
"
${
BFANODEDIR
}
"
echo
"Node is not initialised. Initialising with genesis."
geth
--config
"
${
BFANETWORKDIR
}
/config.toml"
--cache
0 init
"
${
BFANETWORKDIR
}
/genesis.json"
fi
}
if
[
-z
"
$SOURCED_BFAINIT_SH
"
]
...
...
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