Alphabet nodes must be NEO consensus nodes
This is required to obtain and distribute genesis tokens
This commit is contained in:
parent
4257afeb88
commit
63383b590c
3 changed files with 12 additions and 9 deletions
|
@ -37,21 +37,22 @@ bin/neo-go-v$(NEOGO_VERSION):
|
||||||
|
|
||||||
.PHONY: morph
|
.PHONY: morph
|
||||||
morph: $(WALLET) | $(NEOGO)
|
morph: $(WALLET) | $(NEOGO)
|
||||||
|
grep -F $$($(NEOGO) wallet dump-keys -w $(WALLET)|head -n2|tail -n1) protocol.privnet.yml
|
||||||
mkdir -p log
|
mkdir -p log
|
||||||
$(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@
|
$(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@
|
||||||
|
|
||||||
wallet/morph.json: wallet.template | $(NEOGO)
|
wallet/morph.json: wallet/az.json
|
||||||
mkdir -p $(dir $@)
|
ln -sf "$(abspath $<)" "$(abspath $@)"
|
||||||
$(NEOGO) wallet init --account --wallet-config $<
|
|
||||||
$(NEOGO) wallet dump-keys -w $@
|
$(NEOGO) wallet dump-keys -w $@
|
||||||
|
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
bootstrap: data/contracts wallet/az.json | $(ADM)
|
bootstrap: data/contracts wallet/az.json | $(ADM)
|
||||||
$(ADM) morph init --contracts $< --alphabet-wallets wallet --rpc-endpoint http://127.0.0.200:30333
|
$(ADM) morph init --contracts $< --alphabet-wallets wallet --rpc-endpoint http://127.0.0.200:30333
|
||||||
|
|
||||||
wallet/az.json: | $(ADM)
|
wallet/az.json: | $(ADM) $(NEOGO)
|
||||||
mkdir -p wallet
|
mkdir -p $(dir $@)
|
||||||
cd wallet; $(abspath $(ADM)) morph generate-alphabet --size 1 --verbose
|
cd wallet; $(abspath $(ADM)) morph generate-alphabet --size 1 --verbose
|
||||||
|
$(NEOGO) wallet dump-keys -w $@
|
||||||
|
|
||||||
data/contracts: | $(NEOGO)
|
data/contracts: | $(NEOGO)
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
|
@ -60,3 +61,7 @@ data/contracts: | $(NEOGO)
|
||||||
--depth=1 --single-branch \
|
--depth=1 --single-branch \
|
||||||
$@
|
$@
|
||||||
$(MAKE) -C $@ all NEOGO=$(abspath $(NEOGO))
|
$(MAKE) -C $@ all NEOGO=$(abspath $(NEOGO))
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
git clean -idxff
|
||||||
|
|
|
@ -4,7 +4,8 @@ ProtocolConfiguration:
|
||||||
TimePerBlock: 1s
|
TimePerBlock: 1s
|
||||||
MemPoolSize: 50000
|
MemPoolSize: 50000
|
||||||
StandbyCommittee:
|
StandbyCommittee:
|
||||||
- 02b3622bf4017b0000000000000000000000000000000000000000000000000000 # nonexistent node
|
# 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 # frostfs-dev-env node
|
||||||
|
- 02a6e0de6659670b68b4456a80b7d2ffbcf1c7f2e757533f2751b53497eeb8431c # replace this with node pubkey
|
||||||
ValidatorsCount: 1
|
ValidatorsCount: 1
|
||||||
VerifyTransactions: true
|
VerifyTransactions: true
|
||||||
StateRootInHeader: true
|
StateRootInHeader: true
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
Path: wallet/morph.json
|
|
||||||
Password: morph
|
|
Loading…
Reference in a new issue