Update param --> parameter to fix conflicting names
This commit is contained in:
parent
e409059477
commit
f468636a09
@ -70,7 +70,7 @@ var (
|
|||||||
bankAccount,
|
bankAccount,
|
||||||
})
|
})
|
||||||
mockTotalDifficulty = big.NewInt(1337)
|
mockTotalDifficulty = big.NewInt(1337)
|
||||||
params = statediff.Params{
|
parameters = statediff.Params{
|
||||||
IntermediateStateNodes: false,
|
IntermediateStateNodes: false,
|
||||||
IncludeTD: true,
|
IncludeTD: true,
|
||||||
IncludeBlock: true,
|
IncludeBlock: true,
|
||||||
@ -176,7 +176,7 @@ func testSubscriptionAPI(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
time.Sleep(1)
|
time.Sleep(1)
|
||||||
mockService.Subscribe(id, payloadChan, quitChan, params)
|
mockService.Subscribe(id, payloadChan, quitChan, parameters)
|
||||||
blockChan <- block1
|
blockChan <- block1
|
||||||
parentBlockChain <- block0
|
parentBlockChain <- block0
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
@ -234,7 +234,7 @@ func testHTTPAPI(t *testing.T) {
|
|||||||
Builder: statediff.NewBuilder(chain.StateCache()),
|
Builder: statediff.NewBuilder(chain.StateCache()),
|
||||||
BlockChain: mockBlockChain,
|
BlockChain: mockBlockChain,
|
||||||
}
|
}
|
||||||
payload, err := mockService.StateDiffAt(block1.Number().Uint64(), params)
|
payload, err := mockService.StateDiffAt(block1.Number().Uint64(), parameters)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user