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
modify miner block to propose block (#92)
[bytom/vapor.git]
/
proposal
/
proposal.go
diff --git
a/mining/mining.go
b/proposal/proposal.go
similarity index 98%
rename from
mining/mining.go
rename to
proposal/proposal.go
index
82149b1
..
364d9ff
100644
(file)
--- a/
mining/mining.go
+++ b/
proposal/proposal.go
@@
-1,4
+1,4
@@
-package
mining
+package
proposal
import (
"sort"
@@
-152,6
+152,8
@@
func NewBlockTemplate(c *protocol.Chain, txPool *protocol.TxPool, accountManager
}
b.BlockHeader.BlockCommitment.TransactionStatusHash, err = types.TxStatusMerkleRoot(txStatus.VerifyStatus)
+
+ _, err = c.GetBBFT().SignBlock(b)
return b, err
}