forked from cerc-io/laconicd-deprecated
fix(evm,rpc): coinbase should not be the current one in traceTransaction execution (#1392)
* add proposer address * make proto-all * update nix * fix test * keep default proposerAddress * add change doc * refine GetProposerAddress with test * include ProposerAddress for trace api * fix eth call req * wrap proposerAddress for eth call * allow proto translates to sdk.ConsAddress * Update rpc/backend/call_tx.go Co-authored-by: Freddy Caceres <facs95@gmail.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Freddy Caceres
Federico Kunze Küllmer
parent
f04b289e75
commit
295a8862db
@@ -221,6 +221,8 @@ message EthCallRequest {
|
||||
bytes args = 1;
|
||||
// the default gas cap to be used
|
||||
uint64 gas_cap = 2;
|
||||
// the proposer of the requested block
|
||||
bytes proposer_address = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
||||
}
|
||||
|
||||
// EstimateGasResponse defines EstimateGas response
|
||||
@@ -247,6 +249,8 @@ message QueryTraceTxRequest {
|
||||
string block_hash = 6;
|
||||
// block time of requested transaction
|
||||
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||
// the proposer of the requested block
|
||||
bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
||||
}
|
||||
|
||||
// QueryTraceTxResponse defines TraceTx response
|
||||
@@ -267,6 +271,8 @@ message QueryTraceBlockRequest {
|
||||
string block_hash = 6;
|
||||
// block time
|
||||
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||
// the proposer of the requested block
|
||||
bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
||||
}
|
||||
|
||||
// QueryTraceBlockResponse defines TraceBlock response
|
||||
|
||||
Reference in New Issue
Block a user