Commit 3af99279 authored by Mark Tyneway's avatar Mark Tyneway Committed by clabby

op-node: revert trust rpc setting

parent 76af8fca
...@@ -403,11 +403,6 @@ func (s *EthClient) GetStorageAt(ctx context.Context, address common.Address, st ...@@ -403,11 +403,6 @@ func (s *EthClient) GetStorageAt(ctx context.Context, address common.Address, st
// ReadStorageAt is a convenience method to read a single storage value at the given slot in the given account. // ReadStorageAt is a convenience method to read a single storage value at the given slot in the given account.
// The storage slot value is verified against the state-root of the given block if we do not trust the RPC provider, or directly retrieved without proof if we do trust the RPC. // The storage slot value is verified against the state-root of the given block if we do not trust the RPC provider, or directly retrieved without proof if we do trust the RPC.
func (s *EthClient) ReadStorageAt(ctx context.Context, address common.Address, storageSlot common.Hash, blockHash common.Hash) (common.Hash, error) { func (s *EthClient) ReadStorageAt(ctx context.Context, address common.Address, storageSlot common.Hash, blockHash common.Hash) (common.Hash, error) {
// TODO: temp
if true {
return s.GetStorageAt(ctx, address, storageSlot, blockHash.String())
}
if s.trustRPC { if s.trustRPC {
return s.GetStorageAt(ctx, address, storageSlot, blockHash.String()) return s.GetStorageAt(ctx, address, storageSlot, blockHash.String())
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment