1、okchaincli tx order new --product bcoin-13a_okt,bcoin-13a_okt,bcoin-13a_okt,bcoin-13a_okt,bcoin-13a_okt,bcoin-13a_okt,bcoin-13a_okt,bcoin-13a_okt -s BUY,BUY,BUY,BUY,BUY,BUY,BUY,BUY -p 270,271,272,273,274,275,276,277 -q 1,1,1,1,1,1,1,1 --from v101 --gas 500000 --fees 0.5okt -y -b block -o json --chain-id okchain --node tcp://192.168.80.98:20157
E[2020-05-08|12:24:51.209][1] CONSENSUS FAILURE!!!
module=consensus err="runtime error: invalid memory address or nil pointer dereference" stack="goroutine 280 [running]:\nruntime/debug.Stack(0xc000bf5338, 0x13b5a60, 0x249fc60)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x9d\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).receiveRoutine.func2(0xc00006f180, 0x1755fb0)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:612 +0x57\npanic(0x13b5a60, 0x249fc60)\n\t/usr/local/go/src/runtime/panic.go:522 +0x1b5\ngithub.com/okex/okchain/x/order/match/periodicauction.fillOrderByKey(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/fill.go:154 +0x2ac\ngithub.com/okex/okchain/x/order/match/periodicauction.fillBuyOrders(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/fill.go:35 +0x41a\ngithub.com/okex/okchain/x/order/match/periodicauction.fillDepthBook(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/fill.go:121 +0x100\ngithub.com/okex/okchain/x/order/match/periodicauction.executeMatchedUpdatedProduct(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/match.go:364 +0x274\ngithub.com/okex/okchain/x/order/match/periodicauction.executeMatch(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/match.go:437 +0x2b4\ngithub.com/okex/okchain/x/order/match/periodicauction.matchOrders(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/match.go:304 +0x560\ngithub.com/okex/okchain/x/order/match/periodicauction.(*PaEngine).Run(0x2520be0, 0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/match/periodicauction/impl.go:17 +0x104\ngithub.com/okex/okchain/x/order.EndBlocker(0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/x/order/endblocker.go:22 +0x16f\ngithub.com/okex/okchain/x/order.AppModule.EndBlock(...)\n\t/go/src/github.com/okex/okchain/x/order/module.go:135\ngithub.com/cosmos/cosmos-sdk/types/module.(*Manager).EndBlock(0xc000ae8af0, 0x19bfca0, 0xc0000cc040, 0x19d5a40, 0xc0051f6b40, 0xa, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/pkg/mod/github.com/okex/[email protected]/types/module/module.go:306 +0x21c\ngithub.com/okex/okchain/app/protocol.(*ProtocolV0).EndBlocker(...)\n\t/go/src/github.com/okex/okchain/app/protocol/protocol_v0.go:468\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).EndBlock(0xc0000c6500, 0x22d78, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000cca000, 0x7effbe8146d0, 0x0, ...)\n\t/go/pkg/mod/github.com/okex/[email protected]/baseapp/baseapp.go:1002 +0x16a\ngithub.com/okex/okchain/app.(*OKChainApp).EndBlock(0xc000a5c110, 0x22d78, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/go/src/github.com/okex/okchain/app/abci.go:56 +0x1d1\ngithub.com/tendermint/tendermint/abci/client.(*localClient).EndBlockSync(0xc0010b0720, 0x22d78, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\n\t/go/pkg/mod/github.com/okex/[email protected]/abci/client/local_client.go:239 +0xea\ngithub.com/tendermint/tendermint/proxy.(*appConnConsensus).EndBlockSync(0xc000de4d20, 0x22d78, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc005611290)\n\t/go/pkg/mod/github.com/okex/[email protected]/proxy/app_conn.go:77 +0x51\ngithub.com/tendermint/tendermint/state.execBlockOnProxyApp(0x19c0720, 0xc0000c11c0, 0x19cce60, 0xc000de4d20, 0xc00502c000, 0x19d8ac0, 0xc000a5c300, 0x22d77, 0x1f6, 0xc002bd9520)\n\t/go/pkg/mod/github.com/okex/[email protected]/state/execution.go:308 +0x6f5\ngithub.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(0xc000128070, 0xa, 0x0, 0xc000e2d7c0, 0x7, 0xc000e2d7d0, 0x7, 0x22d77, 0x1f6, 0xc002bd9520, ...)\n\t/go/pkg/mod/github.com/okex/[email protected]/state/execution.go:139 +0x13d\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).finalizeCommit(0xc00006f180, 0x22d78)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:1453 +0x99f\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).tryFinalizeCommit(0xc00006f180, 0x22d78)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:1370 +0x3e0\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).enterCommit.func1(0xc00006f180, 0x0, 0x22d78)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:1305 +0x91\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).enterCommit(0xc00006f180, 0x22d78, 0x0)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:1342 +0x680\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).addVote(0xc00006f180, 0xc004ca54a0, 0xc001097110, 0x28, 0xc0031ca000, 0xc004c08900, 0x107)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:1822 +0xbfb\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).tryAddVote(0xc00006f180, 0xc004ca54a0, 0xc001097110, 0x28, 0x1414560, 0xed6474601, 0xc005379440)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:1651 +0x5c\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).handleMsg(0xc00006f180, 0x1999ac0, 0xc005e13278, 0xc001097110, 0x28)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:708 +0x260\ngithub.com/tendermint/tendermint/consensus.(*ConsensusState).receiveRoutine(0xc00006f180, 0x0)\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:643 +0x6d3\ncreated by github.com/tendermint/tendermint/consensus.(*ConsensusState).OnStart\n\t/go/pkg/mod/github.com/okex/[email protected]/consensus/state.go:335 +0x13a\n"