| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
There is currently no simple way to obtain the network ID from a Client.
This adds a NetworkID method that wraps the net_version JSON-RPC call.
|
|
|
| |
Implements ethereum/EIPs#98
|
|
|
|
|
|
| |
As per #14661 TransactionByHash always returns false for pending.
This uses blockNumber rather than blockHash to ensure that it returns
the correct value for pending and will not suffer side-effects if
eth_getTransactionByHash is fixed in future.
|
|
|
|
|
|
|
|
|
|
| |
There is no need to depend on the old context package now that the
minimum Go version is 1.7. The move to "context" eliminates our weird
vendoring setup. Some vendored code still uses golang.org/x/net/context
and it is now vendored in the normal way.
This change triggered new vet checks around context.WithTimeout which
didn't fire with golang.org/x/net/context.
|
|
|
|
|
|
|
|
| |
This significantly reduces the dependency closure of ethclient, which no
longer depends on core/vm as of this change.
All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too,
the constructor simply returned a literal.
|
|\
| |
| | |
ethclient: hex encode request args for TransactionInBlock
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
| |
ethclient now returns ethereum.NotFound if the server returns null and
no error while accessing blockchain data.
The light client cannot provide arbitrary transactions. The change to
split transaction access into its own interface emphasizes that
transactions should not be relied on and recommends use of logs.
|
| |
|
|
|
|
|
| |
It should never return null for a known uncle, but even if it does
we can't just crash.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(#3209)
Fixes #3203
|
| |
|
| |
|
| |
|
|
ethclient implements the proposed Ethereum Go API. There are no tests at
the moment, a suite that excercises all implementations of the API will
be added later.
|