aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient/ethclient_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-29 22:54:06 +0800
committerFelix Lange <fjl@twurst.com>2016-12-05 17:57:11 +0800
commit3bc0fe1ee3183311efe851aca8fd10d5a5433929 (patch)
treeed6e33c3af93115e02e508f86b993a6bf64f5328 /ethclient/ethclient_test.go
parentfa0cc274009670209fd71b1462dcdde3b431d64f (diff)
downloaddexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.tar
dexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.tar.gz
dexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.tar.bz2
dexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.tar.lz
dexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.tar.xz
dexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.tar.zst
dexon-3bc0fe1ee3183311efe851aca8fd10d5a5433929.zip
ethclient, ethereum: add NotFound, split transactions out of ChainReader
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.
Diffstat (limited to 'ethclient/ethclient_test.go')
-rw-r--r--ethclient/ethclient_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go
index 102c0d3b2..178eb2be9 100644
--- a/ethclient/ethclient_test.go
+++ b/ethclient/ethclient_test.go
@@ -21,9 +21,9 @@ import "github.com/ethereum/go-ethereum"
// Verify that Client implements the ethereum interfaces.
var (
_ = ethereum.ChainReader(&Client{})
+ _ = ethereum.TransactionReader(&Client{})
_ = ethereum.ChainStateReader(&Client{})
_ = ethereum.ChainSyncReader(&Client{})
- _ = ethereum.ChainHeadEventer(&Client{})
_ = ethereum.ContractCaller(&Client{})
_ = ethereum.GasEstimator(&Client{})
_ = ethereum.GasPricer(&Client{})