OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix xpub copy error (#270)
[bytom/vapor.git]
/
protocol
/
bbft.go
diff --git
a/protocol/bbft.go
b/protocol/bbft.go
index
888ce99
..
f865897
100644
(file)
--- a/
protocol/bbft.go
+++ b/
protocol/bbft.go
@@
-168,7
+168,7
@@
func (c *Chain) ProcessBlockSignature(signature, xPub []byte, blockHash *bc.Hash
// save the signature if the block is not exist
if blockHeader == nil {
var xPubKey chainkd.XPub
- copy(xPub[:], xPub[:])
+ copy(xPub
Key
[:], xPub[:])
if !xPubKey.Verify(blockHash.Bytes(), signature) {
return errInvalidSignature
}