Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 23.1.1 rc1 #5106

Merged
merged 23 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fd90643
Prepare for version 23.1.1-SNAPSHOT (#5067)
siladu Feb 8, 2023
05bf6ab
Add getPayloadBodiesByRangeV1 and getPayloadBodiesByHash engine metho…
gfukushima Feb 9, 2023
d7afa41
Revert "Keep Worldstate Storage open for Bonsai archive latest layer …
siladu Feb 9, 2023
b2d378e
Support post merge forks at genesis for hive tests (#5019)
jframe Feb 9, 2023
01b16bd
Fix manifest docker not skipping interim builds for RCs (#5068)
jframe Feb 9, 2023
21312b1
Fix PoS checkpoint validation (#5081)
gfukushima Feb 10, 2023
56ae1fc
moves check for init code length before balance check (#5077)
jflo Feb 10, 2023
3ca8db3
bump revision for 23.1.x release branch
garyschulte Feb 14, 2023
7cf035a
Burn in build of 23.1.0 (#5093)
garyschulte Feb 14, 2023
46168f6
re-default global max rpc batch size to 1k (#5104) (#5105)
garyschulte Feb 17, 2023
9f7f26e
Fix Layered World State issue (#5076)
ahamlat Feb 13, 2023
e3de7f3
Add shanghaiTime to sepolia (#5088)
siladu Feb 14, 2023
fd3e320
If a PoS block creation repetition takes less than a configurable dur…
fab-10 Feb 14, 2023
b7258cc
Allow dashes in ethstats password (#5090)
siladu Feb 14, 2023
017b2d2
reintroduce checking of block height for certain tasks when we are no…
pinges Feb 15, 2023
73ccac6
Allow other users to read the /opt/besu dir when using docker (#5092)
skylenet Feb 15, 2023
860fc9b
Only use MAINNET version of KZG (#5095)
fab-10 Feb 15, 2023
d26b039
add more context to exception messages and debug logging (#5066)
macfarla Feb 16, 2023
f36165a
Fix block value calculation (#5100)
gfukushima Feb 16, 2023
9ac70d6
Add 23.1.1-RC1 changelog
jframe Feb 17, 2023
114bd86
Merge branch 'release-23.1.x' into release_23.1.1-RC1
jframe Feb 17, 2023
4c9dd3e
Change version to 23.1.1-RC1
jframe Feb 17, 2023
6e8eff2
Merge branch 'release-23.1.x' into release_23.1.1-RC1
jframe Feb 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add more context to exception messages and debug logging (#5066)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
  • Loading branch information
macfarla authored and jframe committed Feb 17, 2023
commit d26b03968f7e54f9752dc634d392d47bf96d8bb4
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ public void shouldFailToSendToToStrictNodeWithoutChainId() {
strictNode.verify(eth.expectEthSendRawTransactionException(rawTx, "ChainId is required"));
}

@Test
public void shouldFailToSendWithInvalidRlp() {
final String invalidRawTx = "0x5555";
strictNode.verify(eth.expectEthSendRawTransactionException(invalidRawTx, "Invalid params"));
}

@Test
public void shouldSendSuccessfullyWithChainId_lenientNode() {
final TransferTransaction tx = createTransactionWithChainId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.hyperledger.besu.ethereum.api.jsonrpc.JsonRpcErrorConverter;
import org.hyperledger.besu.ethereum.api.jsonrpc.RpcMethod;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.JsonRpcRequestContext;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.exception.InvalidJsonRpcRequestException;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcError;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcErrorResponse;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcResponse;
Expand Down Expand Up @@ -68,13 +69,21 @@ public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
final Transaction transaction;
try {
transaction = DomainObjectDecodeUtils.decodeRawTransaction(rawTransaction);
} catch (final RLPException | IllegalArgumentException e) {
LOG.trace("Received local transaction {}", transaction);
} catch (final RLPException e) {
LOG.debug("RLPException: {} caused by {}", e.getMessage(), e.getCause());
return new JsonRpcErrorResponse(
requestContext.getRequest().getId(), JsonRpcError.INVALID_PARAMS);
} catch (final InvalidJsonRpcRequestException i) {
LOG.debug("InvalidJsonRpcRequestException: {} caused by {}", i.getMessage(), i.getCause());
return new JsonRpcErrorResponse(
requestContext.getRequest().getId(), JsonRpcError.INVALID_PARAMS);
} catch (final IllegalArgumentException ill) {
LOG.debug("IllegalArgumentException: {} caused by {}", ill.getMessage(), ill.getCause());
return new JsonRpcErrorResponse(
requestContext.getRequest().getId(), JsonRpcError.INVALID_PARAMS);
}

LOG.trace("Received local transaction {}", transaction);

final ValidationResult<TransactionInvalidReason> validationResult =
transactionPool.get().addLocalTransaction(transaction);
return validationResult.either(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ public static Transaction decodeRawTransaction(final String rawTransaction)
Bytes txnBytes = Bytes.fromHexString(rawTransaction);
final boolean isGoQuorumCompatibilityMode = GoQuorumOptions.getGoQuorumCompatibilityMode();
return TransactionDecoder.decodeOpaqueBytes(txnBytes, isGoQuorumCompatibilityMode);
} catch (final IllegalArgumentException | RLPException e) {
} catch (final IllegalArgumentException e) {
throw new InvalidJsonRpcRequestException("Invalid raw transaction hex", e);
} catch (final RLPException r) {
throw new InvalidJsonRpcRequestException("Invalid RLP in raw transaction hex", r);
}
}
}