Conflux-Chain/go-conflux-sdk

New requirements for Client interface

Closed this issue · 2 comments

boqiu commented

Following APIs is preferred in client interface, which is initialized when creating the client instance:

  1. MustGetNetworkID() uint32
  2. MustGetChainID() uint
  3. WaitForNonceUpdate(target)?// The same with the existing WaitForReceit

Client.GetNetworkIDCached and Client.GetNetworkIDCached are supported.
What does the target of WaitForNonceUpdate(target) mean

boqiu commented

Client.GetNetworkIDCached and Client.GetNetworkIDCached are supported. What does the target of WaitForNonceUpdate(target) mean

Just ignore it, WaitForReceipt is enough.