pchain-org / pchain

Pchain client-in-Go
https://plian.org
GNU General Public License v3.0
24 stars 12 forks source link

index out of range #8

Closed liaoyd closed 6 years ago

liaoyd commented 6 years ago

持续发交易每秒并发300次,节点挂掉重启之后报错:

panic: runtime error: index out of range

goroutine 213 [running]: github.com/pchain/vendor/github.com/tendermint/tendermint/state.(ABCIResponses).ResCb(0x1a9bf80, 0xc434743a90, 0xc434743a80) /mnt/vdb/multi_chain/src/github.com/pchain/vendor/github.com/tendermint/tendermint/state/abci_response.go:127 +0xae8 github.com/pchain/vendor/github.com/tendermint/tendermint/state.(ABCIResponses).ResCb-fm(0xc434743a90, 0xc434743a80) /mnt/vdb/multi_chain/src/github.com/pchain/vendor/github.com/tendermint/tendermint/state/abci_response.go:76 +0x3e github.com/pchain/vendor/github.com/tendermint/abci/client.(socketClient).didRecvResponse(0xc424460f00, 0xc434743a80, 0x0, 0x0) /mnt/vdb/multi_chain/src/github.com/pchain/vendor/github.com/tendermint/abci/client/socket_client.go:223 +0x1ff github.com/pchain/vendor/github.com/tendermint/abci/client.(socketClient).recvResponseRoutine(0xc424460f00, 0x1313440, 0xc423b6b0c8) /mnt/vdb/multi_chain/src/github.com/pchain/vendor/github.com/tendermint/abci/client/socket_client.go:180 +0x13c created by github.com/pchain/vendor/github.com/tendermint/abci/client.(*socketClient).OnStart /mnt/vdb/multi_chain/src/github.com/pchain/vendor/github.com/tendermint/abci/client/socket_client.go:80 +0x1b8

@pchain-org

fanbsb commented 6 years ago

This issue has been fixed by the following commit

https://github.com/pchain-org/pchain/commit/af7223388260d127203227ee5277445e7fc101e2

https://github.com/pchain-org/pchain/commit/e3ab808a043b43982e4a14414549b100f265aa5c