Skip to content

2K network cannot be restarted #11860

@Vladmair

Description

@Vladmair

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

v1.26.2 082a9159ced1f6bd7e8fa77064a51d209324b693

Repro Steps

git clone https://github.com/ipfs-force-community/lotus.git

git checkout v1.26.2

rm -rf ~/.genesis-sectors

make 2k

make lotus-shed

./lotus-seed pre-seal --sector-size 2KiB --num-sectors 2

./lotus-seed genesis new localnet.json

./lotus-seed genesis set-vrk --account $ localnet.json

./lotus-seed genesis add-miner localnet.json ~/.genesis-sectors/pre-seal-t01000.json

./lotus daemon --lotus-make-genesis=devgen.car --genesis-template=localnet.json --bootstrap=false

open new window:
./lotus wallet import --as-default $ private key

./lotus wallet import --as-default ~/.genesis-sectors/pre-seal-t01000.key

restart lotus
./lotus daemon --lotus-make-genesis=devgen.car --genesis-template=localnet.json --bootstrap=false

Describe the Bug

Follow the steps to reproduce the problem

Logging Information

2024-04-09T11:45:02.328+0800	WARN	genesis	testing/genesis.go:56	Generating new random genesis block, note that this SHOULD NOT happen unless you are setting up new network
manifest cid: bafy2bzaceasjdukhhyjbegpli247vbf5h64f7uvxhhebdihuqsj2mwisdwa6o
init set t3rrewz22dlas3cx6bhefiwrwknnsjhzfehkxx5geqql47esuosxdo6uvxc5lw5rx22sy34rhovzwj2afpxksa t0100
init set t1ceb34gnsc6qk5dt6n7xg6ycwzasjhbxm3iylkiy t0101
2024-04-09T11:45:07.310+0800	INFO	basichost	basic/natmgr.go:112	DiscoverNAT error:no NAT found
[TRACE]<Init::1> called exec; params.code_cid: Cid(bafk2bzacecs262232b3awcrilyzpdketeayyqzzwgoavtxilgjvayrz55ovk4)
[TRACE]<Init::1> caller code CID: Cid(bafk2bzacebbtj2m2ajawfuzxqz5nmdep7xevjo2qfjqa5tx3vr5m6qojolya4)
[TRACE]<Init::1> robust address: Address { payload: Actor([5, 73, 247, 198, 29, 32, 205, 91, 115, 48, 116, 224, 198, 191, 41, 21, 191, 43, 114, 104]) }
publishing 2 storage deals on miner t01000 with worker t3rrewz22dlas3cx6bhefiwrwknnsjhzfehkxx5geqql47esuosxdo6uvxc5lw5rx22sy34rhovzwj2afpxksa
[INFO]<StorageMiner::1000> RepayDebtsOrAbort was called and succeeded
[DEBUG]<StorageMiner::1000> storage provder f01000 burning 0.0
[INFO]<StorageMiner::1000> RepayDebtsOrAbort was called and succeeded
[DEBUG]<StorageMiner::1000> storage provder f01000 burning 0.0
2024-04-09T11:45:09.645+0800	INFO	genesis	genesis/genesis.go:619	Empty Genesis root: bafy2bzacedswlcz5ddgqnyo3sak3jmhmkxashisnlpq6ujgyhe4mlobzpnhs6
GENESIS MINER ADDRESS: t01000
2024-04-09T11:45:09.670+0800	WARN	genesis	testing/genesis.go:96	WRITING GENESIS FILE AT devgen.car
ERROR: initializing node: starting node: could not build arguments for function "github.com/filecoin-project/lotus/node".ConfigCommon.StartListening.func16 (/root/vladmair/lotus-local-net/node/modules/lp2p/addrs.go:85): failed to build host.Host: could not build arguments for function "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_amd64.s:28): failed to build lp2p.BaseIpfsRouting: could not build arguments for function "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_amd64.s:28): failed to build dtypes.NetworkName: could not build arguments for function "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_amd64.s:28): failed to build dtypes.AfterGenesisSet: received non-nil error from function "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_amd64.s:28): genesis in the repo is not the one expected by this version of Lotus!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions