diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-05 01:47:23 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-05 01:47:23 +0800 |
commit | 45152dead5c6bc144f8ed51ed85d5ef64f783735 (patch) | |
tree | 48aa51432821a0d49ffa6d2a015c16f4867a1c63 /common/big.go | |
parent | 10fc73376789b1b016fbbd86df3b378df0238a0c (diff) | |
parent | 912cf7ba049e4bcd5e497c62bb7cb96e7502f1b9 (diff) | |
download | dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.gz dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.bz2 dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.lz dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.xz dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.zst dexon-45152dead5c6bc144f8ed51ed85d5ef64f783735.zip |
Merge pull request #1181 from obscuren/txpool_fixes
cmd: transaction pool fixes and improvements
Diffstat (limited to 'common/big.go')
-rw-r--r-- | common/big.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/big.go b/common/big.go index 3257b179d..05d56daba 100644 --- a/common/big.go +++ b/common/big.go @@ -36,16 +36,16 @@ func Big(num string) *big.Int { return n } -// BigD +// Bytes2Big // -// Shortcut for new(big.Int).SetBytes(...) -func Bytes2Big(data []byte) *big.Int { +func BytesToBig(data []byte) *big.Int { n := new(big.Int) n.SetBytes(data) return n } -func BigD(data []byte) *big.Int { return Bytes2Big(data) } +func Bytes2Big(data []byte) *big.Int { return BytesToBig(data) } +func BigD(data []byte) *big.Int { return BytesToBig(data) } func String2Big(num string) *big.Int { n := new(big.Int) |