Open prz23 opened 2 months ago
time="2024-06-20T09:56:48Z" level=info msg="Database closed" time="2024-06-20T09:56:48Z" level=info msg="Shutdown complete" --- FAIL: TestStakingFailures (48.60s) containers.go:69: Running: "[bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=pass getblockcount]" bitcoind_node_setup.go:63: failed to get block count: <nil> containers.go:69: Running: "[bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=pass createwallet test-wallet false false pass false false]" containers.go:69: Running: "[bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=pass -generate 300]" e2e_test.go:998: Error Trace: /home/btc-staker-bool/itest/e2e_test.go:998 /home/btc-staker-bool/itest/e2e_test.go:1100 Error: Received unexpected error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account bbn1nvea484trpuz4wu38eu90alslxutj48ahts8wn not found: key not found Test: TestStakingFailures e2e_test.go:359: Error Trace: /home/btc-staker-bool/itest/e2e_test.go:359 /opt/go/src/runtime/panic.go:626 /opt/go/src/testing/testing.go:1005 /home/btc-staker-bool/itest/e2e_test.go:998 /home/btc-staker-bool/itest/e2e_test.go:1100 Error: Received unexpected error: exit status 1 Test: TestStakingFailures FAIL FAIL github.com/babylonchain/btc-staker/itest 48.743s
func TestStakingFailures(t *testing.T) { numMatureOutputs := uint32(200) tm := StartManager(t, numMatureOutputs) defer tm.Stop(t) tm.insertAllMinedBlocksToBabylon(t) <--- error
// Insert BTC block header using rpc client func (bc *BabylonController) InsertBtcBlockHeaders(headers []*wire.BlockHeader) (*pv.RelayerTxResponse, error) { msg := &btclctypes.MsgInsertHeaders{ Signer: bc.getTxSigner(), Headers: chainToChainBytes(headers), } return bc.reliablySendMsgs([]sdk.Msg{msg}) <---error }
https://github.com/babylonchain/btc-staker/blob/c853313ad8bc0c6058ad3272662e88f46b47c0e6/babylonclient/babyloncontroller.go#L399
https://github.com/babylonchain/btc-staker/blob/c853313ad8bc0c6058ad3272662e88f46b47c0e6/babylonclient/babyloncontroller.go#L399