File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/query Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1222,15 +1222,19 @@ private List<Transaction> getTransactions(
1222
1222
final Hash blockHash , final Supplier <Boolean > isQueryAlive ) throws Exception {
1223
1223
return BackendQuery .runIfAlive (
1224
1224
"matchingLogs - getBlockBody" ,
1225
- () -> blockchain .getBlockBody (blockHash ).orElseThrow ().getTransactions (),
1225
+ () ->
1226
+ blockchain
1227
+ .getBlockBody (blockHash )
1228
+ .map ((bb ) -> bb .getTransactions ())
1229
+ .orElse (Collections .emptyList ()),
1226
1230
isQueryAlive );
1227
1231
}
1228
1232
1229
1233
private List <TransactionReceipt > getReceipts (
1230
1234
final Hash blockHash , final Supplier <Boolean > isQueryAlive ) throws Exception {
1231
1235
return BackendQuery .runIfAlive (
1232
1236
"matchingLogs - getTxReceipts" ,
1233
- () -> blockchain .getTxReceipts (blockHash ).orElseThrow ( ),
1237
+ () -> blockchain .getTxReceipts (blockHash ).orElse ( Collections . emptyList () ),
1234
1238
isQueryAlive );
1235
1239
}
1236
1240
You can’t perform that action at this time.
0 commit comments