Skip to content

Commit

Permalink
added handling for revert reason
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisRybas committed Feb 2, 2024
1 parent b118023 commit 705687b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 25 deletions.
24 changes: 1 addition & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ x-besu-def:
/opt/besu/bin/besu \
--config-file=/config/config.toml \
--p2p-host=$$(hostname -i) \
--revert-reason-enabled=true \
--rpc-http-api=EEA,WEB3,ETH,NET,TRACE,DEBUG,ADMIN,TXPOOL,PERM,${BESU_CONS_ALGO:-QBFT} \
--rpc-ws-api=EEA,WEB3,ETH,NET,TRACE,DEBUG,ADMIN,TXPOOL,PERM,${BESU_CONS_ALGO:-QBFT} ;
x-ethsignerProxy-def:
&ethsignerProxy-def
image: consensys/ethsigner:${ETHSIGNER_VERSION:-latest}
Expand Down Expand Up @@ -176,16 +169,6 @@ services:
quorum-dev-quickstart:
ipv4_address: 172.16.239.40











prometheus:
image: "prom/prometheus"
volumes:
Expand Down Expand Up @@ -234,11 +217,6 @@ services:
quorum-dev-quickstart:
ipv4_address: 172.16.239.35






volumes:
public-keys:
prometheus:
Expand Down
2 changes: 1 addition & 1 deletion network/config/besu/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

LOG4J_CONFIGURATION_FILE=/config/log-config.xml

BESU_REVERT_REASON_ENABLED=true

1 change: 1 addition & 0 deletions network/config/besu/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ logging="INFO"
data-path="/opt/besu/data"
host-allowlist=["*"]
min-gas-price=0
revert-reason-enabled=true

# rpc
rpc-http-enabled=true
Expand Down
2 changes: 1 addition & 1 deletion network/config/nodes/validator5/key
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0x485486605b905d3b93020710f00a0fd07886f0bed128900f0ffcaff6a9412dd8
0x911f8a69cf7c3345817b6c333d2a4b60d458ef5d6e2fd7256ce329c82d2f8843
1 change: 1 addition & 0 deletions vdr/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl From<Web3Error> for VdrError {
Web3Error::Unreachable => VdrError::ClientNodeUnreachable,
Web3Error::InvalidResponse(err) => VdrError::ClientInvalidResponse(err),
Web3Error::Rpc(err) => VdrError::ClientTransactionReverted(json!(err).to_string()),
Web3Error::Revert(err) => VdrError::ClientTransactionReverted(err),
_ => VdrError::ClientUnexpectedError(value.to_string()),
};

Expand Down

0 comments on commit 705687b

Please sign in to comment.