OSDN Git Service

quick fix for snapshot key and a compile time error (#142)
authorPaladz <yzhu101@uottawa.ca>
Tue, 28 Nov 2017 14:20:36 +0000 (22:20 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Nov 2017 14:20:36 +0000 (22:20 +0800)
blockchain/receivers.go
blockchain/txdb/snapshot.go

index 3bc672e..af14e29 100755 (executable)
@@ -2,7 +2,6 @@ package blockchain
 
 import (
        "context"
-       "fmt"
        "time"
 )
 
index 9956ced..45a22b5 100644 (file)
@@ -13,7 +13,7 @@ import (
        "github.com/bytom/protocol/state"
 )
 
-const snapshotPreFix = "MC:"
+const snapshotPreFix = "SS:"
 
 func calcSnapshotKey(hash *bc.Hash) []byte {
        return []byte(snapshotPreFix + hash.String())