Alphabet nodes must be NEO consensus nodes

This is required to obtain and distribute genesis tokens
This commit is contained in:
Vitaliy Potyarkin 2024-09-17 07:31:48 +00:00
parent 4257afeb88
commit 63383b590c
3 changed files with 12 additions and 9 deletions

View file

@ -37,21 +37,22 @@ bin/neo-go-v$(NEOGO_VERSION):
.PHONY: morph
morph: $(WALLET) | $(NEOGO)
grep -F $$($(NEOGO) wallet dump-keys -w $(WALLET)|head -n2|tail -n1) protocol.privnet.yml
mkdir -p log
$(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@
wallet/morph.json: wallet.template | $(NEOGO)
mkdir -p $(dir $@)
$(NEOGO) wallet init --account --wallet-config $<
wallet/morph.json: wallet/az.json
ln -sf "$(abspath $<)" "$(abspath $@)"
$(NEOGO) wallet dump-keys -w $@
.PHONY: bootstrap
bootstrap: data/contracts wallet/az.json | $(ADM)
$(ADM) morph init --contracts $< --alphabet-wallets wallet --rpc-endpoint http://127.0.0.200:30333
wallet/az.json: | $(ADM)
mkdir -p wallet
wallet/az.json: | $(ADM) $(NEOGO)
mkdir -p $(dir $@)
cd wallet; $(abspath $(ADM)) morph generate-alphabet --size 1 --verbose
$(NEOGO) wallet dump-keys -w $@
data/contracts: | $(NEOGO)
mkdir -p $(dir $@)
@ -60,3 +61,7 @@ data/contracts: | $(NEOGO)
--depth=1 --single-branch \
$@
$(MAKE) -C $@ all NEOGO=$(abspath $(NEOGO))
.PHONY: clean
clean:
git clean -idxff

View file

@ -4,7 +4,8 @@ ProtocolConfiguration:
TimePerBlock: 1s
MemPoolSize: 50000
StandbyCommittee:
- 02b3622bf4017b0000000000000000000000000000000000000000000000000000 # nonexistent node
# 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 # frostfs-dev-env node
- 02a6e0de6659670b68b4456a80b7d2ffbcf1c7f2e757533f2751b53497eeb8431c # replace this with node pubkey
ValidatorsCount: 1
VerifyTransactions: true
StateRootInHeader: true

View file

@ -1,3 +0,0 @@
---
Path: wallet/morph.json
Password: morph