OSDN Git Service

change BTMAssetID to human readable (#1216)
[bytom/bytom-spv.git] / consensus / general.go
index ba8814d..3c5453d 100644 (file)
@@ -1,6 +1,7 @@
 package consensus
 
 import (
+       "encoding/binary"
        "strings"
 
        "github.com/bytom/protocol/bc"
@@ -39,10 +40,10 @@ const (
 
 // BTMAssetID is BTM's asset id, the soul asset of Bytom
 var BTMAssetID = &bc.AssetID{
-       V0: uint64(18446744073709551615),
-       V1: uint64(18446744073709551615),
-       V2: uint64(18446744073709551615),
-       V3: uint64(18446744073709551615),
+       V0: binary.BigEndian.Uint64([]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}),
+       V1: binary.BigEndian.Uint64([]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}),
+       V2: binary.BigEndian.Uint64([]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}),
+       V3: binary.BigEndian.Uint64([]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}),
 }
 
 // InitialSeed is SHA3-256 of Byte[0^32]