aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-21 20:47:58 +0800
committerobscuren <geffobscura@gmail.com>2014-08-21 20:47:58 +0800
commiteaa2e8900d1036e09b002c4e20fc6e4f9cd031bb (patch)
tree9a0c4c4b1bda39560c70147c73862d72eff38dd1 /ethutil
parent79c64f6bca4fcfb257496be22c64f4b2faed7050 (diff)
downloadgo-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.go8
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
+}