diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-21 20:47:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-21 20:47:58 +0800 |
commit | eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb (patch) | |
tree | 9a0c4c4b1bda39560c70147c73862d72eff38dd1 /ethutil | |
parent | 79c64f6bca4fcfb257496be22c64f4b2faed7050 (diff) | |
download | go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.gz go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.bz2 go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.lz go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.xz go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.tar.zst go-tangerine-eaa2e8900d1036e09b002c4e20fc6e4f9cd031bb.zip |
PoC 6 networking code.
* Added block pool for gathering blocks from the network (chunks)
* Re wrote syncing
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/bytes.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ethutil/bytes.go b/ethutil/bytes.go index 63c1606c2..e38f89454 100644 --- a/ethutil/bytes.go +++ b/ethutil/bytes.go @@ -208,3 +208,11 @@ func Address(slice []byte) (addr []byte) { return } + +func ByteSliceToInterface(slice [][]byte) (ret []interface{}) { + for _, i := range slice { + ret = append(ret, i) + } + + return +} |