internal/ethapi: remove error return on RPCMarshalBlock (#27449)

rm error when marshal block to rpc type allen
This commit is contained in:
hero5512
2023-06-13 03:02:11 -04:00
committed by GitHub
parent 174d267f48
commit 5ac4da3653
3 changed files with 6 additions and 16 deletions
+1 -5
View File
@@ -758,11 +758,7 @@ func TestRPCMarshalBlock(t *testing.T) {
}
for i, tc := range testSuite {
resp, err := RPCMarshalBlock(block, tc.inclTx, tc.fullTx, params.MainnetChainConfig)
if err != nil {
t.Errorf("test %d: got error %v", i, err)
continue
}
resp := RPCMarshalBlock(block, tc.inclTx, tc.fullTx, params.MainnetChainConfig)
out, err := json.Marshal(resp)
if err != nil {
t.Errorf("test %d: json marshal error: %v", i, err)