diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-04 22:34:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-04 22:34:55 +0800 |
commit | 0f84b9c30d06a59f20a2d33ffd1281d5e6e2681a (patch) | |
tree | 31edfdefc6cf249f23067768719e623f7b517638 /ethpipe/pipe.go | |
parent | 342cc122b43f01301d0188de1e333c32ed64ae8c (diff) | |
download | go-tangerine-0f84b9c30d06a59f20a2d33ffd1281d5e6e2681a.tar.gz go-tangerine-0f84b9c30d06a59f20a2d33ffd1281d5e6e2681a.tar.zst go-tangerine-0f84b9c30d06a59f20a2d33ffd1281d5e6e2681a.zip |
Added exist method
Diffstat (limited to 'ethpipe/pipe.go')
-rw-r--r-- | ethpipe/pipe.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethpipe/pipe.go b/ethpipe/pipe.go index 710fc4e7c..ca0a3416c 100644 --- a/ethpipe/pipe.go +++ b/ethpipe/pipe.go @@ -75,6 +75,10 @@ func (self *Pipe) ToAddress(priv []byte) []byte { return pair.Address() } +func (self *Pipe) Exists(addr []byte) bool { + return self.World().Get(addr) != nil +} + func (self *Pipe) TransactString(key *ethcrypto.KeyPair, rec string, value, gas, price *ethutil.Value, data []byte) error { // Check if an address is stored by this address var hash []byte |