From 23c1efeace4e1bb0583ff4ffc465e4b6c0d95661 Mon Sep 17 00:00:00 2001 From: Ilan Gitter Date: Thu, 4 Oct 2018 16:47:48 -0400 Subject: [PATCH] make simulated progress function agree with syncprogress interface for client --- accounts/abi/bind/backends/simulated.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index ebb463acb5..161e9ffba3 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -162,15 +162,15 @@ func (b *SimulatedBackend) StorageAt(ctx context.Context, contract common.Addres // Progress retrieves the progress of the client syncing with the simulated backend // Since there is no delay in synchronisation, we can assume that the simulated backend // knows the current state of the chain. -func (d *SimulatedBackend) Progress() ethereum.SyncProgress { +func (d *SimulatedBackend) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error) { current := d.blockchain.CurrentBlock().NumberU64() - return ethereum.SyncProgress{ + return ðereum.SyncProgress{ StartingBlock: uint64(0), CurrentBlock: current, HighestBlock: current, PulledStates: current, KnownStates: current, - } + }, nil } // TransactionReceipt returns the receipt of a transaction.