-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
C:rpcComponent: JSON RPC, gRPCComponent: JSON RPC, gRPCT:bugType Bug (Confirmed)Type Bug (Confirmed)
Description
Tendermint version (use tendermint version or git rev-parse --verify HEAD if installed from source):
github.com/tendermint/go-amino v0.15.0
github.com/tendermint/tendermint v0.32.2
github.com/tendermint/tm-db v0.1.1
ABCI app (name for built-in, URL for self-written if it's publicly available):
github.com/cosmos/cosmos-sdk v0.36.0-rc4
What happened:
the rest api /blocks/latest returns error when block contains double-sign Evidence
What you expected to happen:
the rest api /blocks/latest returns correctly even when block contains double-sign Evidence
Have you tried the latest version: yes/no
How to reproduce it (as minimally and precisely as possible):
cosmos/cosmos-sdk#4887
Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file):
{"error":"Block: response error: RPC error -32603 - Internal error: unmarshal to types.Block failed after 359 bytes (Unregistered interface types.Evidence): 0AE1020A02080A121C636F696E65782D696E746567726174696F6E74657374347451486A72181D220C0895FEC0EA0510B1EC839E0330033A480A204CB6F2F843A417913564CC61FB855EDDC06BEBB2E3DD372A95D073DBE47E93C0122408011220BFD647EC5F6BA55E28EFE46430F14CF9FDD15D3D0505567B59F990EB0FEA2DF24220910A97C1A4672F24C9F06247DA19D40A9616656021CB0FBE2999296CE863F9A45220EBD73CA0C310088CC8D8702DEEB362B88F73B0E7A4C6D9191D2F3AD5B7C816DC5A20EBD73CA0C310088CC8D8702DEEB362B88F73B0E7A4C6D9191D2F3AD5B7C816DC6220048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F6A2073E7BF7BF70EC2278370BF5F16C677A05CC13E7527C295495A6ABBAE86EE26437A2066CACE448BA7525C36F35448E9221FA7690C930C948E582248AD13380D6DA804820114E8A8F8DDEFD7B989BA1998858B88852471C20B431AA0030A9D037597750E0A251624DE6420BEC740CB3493EBDADF80535D997768A52C5DA9DBA92C491EA4F7CB15449E464312B6010801101C22480A204CB6F2F843A417913564CC61FB855EDDC06BEBB2E3DD372A95D073DBE47E93C0122408011220BFD647EC5F6BA55E28EFE46430F14CF9FDD15D3D0505567B59F990EB0FEA2DF22A0C0895FEC0EA0510A8DBE5D3023214A66B3E84D6AECF7FDEDCF67776761628BCAF33003801424002226AC9A485F6617D8E5D33D7973B6AD6426815B85E6FF199EF40FC1519CDAB8C8B7F021D749AD76316DEBE02643338AA2B7B6A449C5001C967710B9D3200041AB6010801101C22480A2025975B448E225ED3DF89B6AD9CDA205F875120759796B9A890A3628A01F1C5BA1224080112203109F97ACFEB77CD59F913B860A1BF13443F291622B8698059347FCB664538D52A0C0895FEC0EA0510BF9C8DE3023214A66B3E84D6AECF7FDEDCF67776761628BCAF330038014240E517DB7E8B3B0829D047C2C47FA0F3C968394FC056602E13B3DAAE54AB5BEF3D3B366EA3DA67FF9163EA9E781F2C1CB58B8361B9996D648DB1B0A87C84E3E40B22F7040A480A204CB6F2F843A417913564CC61FB855EDDC06BEBB2E3DD372A95D073DBE47E93C0122408011220BFD647EC5F6BA55E28EFE46430F14CF9FDD15D3D0505567B59F990EB0FEA2DF2120012B6010802101C22480A204CB6F2F843A417913564CC61FB855EDDC06BEBB2E3DD372A95D073DBE47E93C0122408011220BFD647EC5F6BA55E28EFE46430F14CF9FDD15D3D0505567B59F990EB0FEA2DF22A0C0895FEC0EA0510809D98D7033214A66B3E84D6AECF7FDEDCF67776761628BCAF330038014240CFC442296EE0502D61D185D964B5DFD03E1AEAE8B01D4B7E4FC27F563AFA67912D0587A653CE2633DEBF49D8B0A5DD2F3C2DF971BB5E25D236C10EB4881D670E12B6010802101C22480A204CB6F2F843A417913564CC61FB855EDDC06BEBB2E3DD372A95D073DBE47E93C0122408011220BFD647EC5F6BA55E28EFE46430F14CF9FDD15D3D0505567B59F990EB0FEA2DF22A0C0895FEC0EA0510A2CB8AD8033214A6D7E290320B59CBFE3CC58A364FAED339A1A8373802424089BCE82F4D5082F5F76A4346E6AE512A09C829E448FC44F0A50C7D3099A80C3343F17F22CD0EDF55F4C4A9809BE280C6EFA8D980F25D75A70E9AC656F452910612B6010802101C22480A204CB6F2F843A417913564CC61FB855EDDC06BEBB2E3DD372A95D073DBE47E93C0122408011220BFD647EC5F6BA55E28EFE46430F14CF9FDD15D3D0505567B59F990EB0FEA2DF22A0C0895FEC0EA0510B1EC839E033214E8A8F8DDEFD7B989BA1998858B88852471C20B4338034240FC437DAD32CF72062CDD4FF7EF99860BC0DE2005306986A8DF2CE1558656F8B54DA270B8B8A25A5F313F71F3021755F279E7A66DB70B32C9C939ECC30BEEB903"}'
(dlv) bt
0 0x00000000009ce997 in github.com/tendermint/go-amino.(*Codec).UnmarshalBinaryBare
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/go-amino@v0.15.0/amino.go:346
1 0x00000000009cda1e in github.com/tendermint/go-amino.(*Codec).UnmarshalBinaryLengthPrefixed
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/go-amino@v0.15.0/amino.go:253
2 0x0000000001001491 in github.com/tendermint/tendermint/store.(*BlockStore).LoadBlock
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/tendermint@v0.32.2/store/store.go:66
3 0x000000000109b6cd in github.com/tendermint/tendermint/rpc/core.Block
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/tendermint@v0.32.2/rpc/core/blocks.go:238
4 0x000000000046311b in runtime.call64
at /usr/local/go/src/runtime/asm_amd64.s:520
5 0x00000000004b3c09 in reflect.Value.call
at /usr/local/go/src/reflect/value.go:447
6 0x00000000004b290a in reflect.Value.Call
at /usr/local/go/src/reflect/value.go:308
7 0x0000000001096b2d in github.com/tendermint/tendermint/rpc/lib/server.makeJSONRPCHandler.func1
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/tendermint@v0.32.2/rpc/lib/server/handlers.go:157
8 0x00000000010973d9 in github.com/tendermint/tendermint/rpc/lib/server.handleInvalidJSONRPCPaths.func1
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/tendermint@v0.32.2/rpc/lib/server/handlers.go:181
9 0x000000000085f854 in net/http.HandlerFunc.ServeHTTP
at /usr/local/go/src/net/http/server.go:1995
10 0x0000000000862444 in net/http.(*ServeMux).ServeHTTP
at /usr/local/go/src/net/http/server.go:2375
11 0x0000000001095183 in github.com/tendermint/tendermint/rpc/lib/server.maxBytesHandler.ServeHTTP
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/tendermint@v0.32.2/rpc/lib/server/http_server.go:206
12 0x000000000109a0d6 in github.com/tendermint/tendermint/rpc/lib/server.(*maxBytesHandler).ServeHTTP
at <autogenerated>:1
13 0x00000000010997c8 in github.com/tendermint/tendermint/rpc/lib/server.RecoverAndLogHandler.func1
at /home/j/lab/go_linux/pkg/mod/github.com/tendermint/tendermint@v0.32.2/rpc/lib/server/http_server.go:179
14 0x000000000085f854 in net/http.HandlerFunc.ServeHTTP
at /usr/local/go/src/net/http/server.go:1995
15 0x0000000000863ed6 in net/http.serverHandler.ServeHTTP
at /usr/local/go/src/net/http/server.go:2774
16 0x000000000085e823 in net/http.(*conn).serve
at /usr/local/go/src/net/http/server.go:1878
17 0x0000000000464c31 in runtime.goexit
at /usr/local/go/src/runtime/asm_amd64.s:1337
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C:rpcComponent: JSON RPC, gRPCComponent: JSON RPC, gRPCT:bugType Bug (Confirmed)Type Bug (Confirmed)