mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
add intArrToByteArr function for testing
This commit is contained in:
parent
90087ff701
commit
8e0cfbc1a1
1 changed files with 10 additions and 1 deletions
|
|
@ -149,3 +149,12 @@ func handleRequest(conn net.Conn) {
|
||||||
// Close the connection when you're done with it.
|
// Close the connection when you're done with it.
|
||||||
//conn.Close()
|
//conn.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func intArrToByteArr(foo []int) []byte {
|
||||||
|
|
||||||
|
ret := []byte{}
|
||||||
|
for _, value := range foo {
|
||||||
|
ret = append(ret, byte(value))
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue