Archived
Use LevelDB storage backend
This commit is contained in:
1 parent
4a88d1244d
commit
31350b4352
114 files changed
+20315
-683
No files matched your search
@@ -15,6 +15,8 @@ import (
|
||||
|
||||
type NodeID [32]byte
|
||||
|
||||
var LocalNodeID = NodeID{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
|
||||
|
||||
// NewNodeID generates a new node ID from the raw bytes of a certificate
|
||||
func NewNodeID(rawCert []byte) NodeID {
|
||||
var n NodeID
|
||||
|
||||
Reference in new issue
Block a user