aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-16 19:26:29 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commit7d938ac7fd4f787f6e4507ce69c6acc677eb8080 (patch)
tree664c98a1f37787d4352d2527b4f6752d9b9bc755 /core
parentab284ca86e5181cbd009aaa1e9b49d56eb532f97 (diff)
downloadgo-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.tar
go-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.tar.gz
go-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.tar.bz2
go-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.tar.lz
go-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.tar.xz
go-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.tar.zst
go-tangerine-7d938ac7fd4f787f6e4507ce69c6acc677eb8080.zip
dex/core: misc bug fixes
Diffstat (limited to 'core')
-rw-r--r--core/types/block.go3
-rw-r--r--core/vm/governance.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/core/types/block.go b/core/types/block.go
index f3d49327f..b568c2b37 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -297,7 +297,8 @@ func (b *Block) ReceiptHash() common.Hash { return b.header.ReceiptHash }
func (b *Block) UncleHash() common.Hash { return b.header.UncleHash }
func (b *Block) Extra() []byte { return common.CopyBytes(b.header.Extra) }
-func (b *Block) Header() *Header { return CopyHeader(b.header) }
+func (b *Block) Header() *Header { return CopyHeader(b.header) }
+func (b *Block) RawHeader() *Header { return b.header }
// Body returns the non-header content of the block.
func (b *Block) Body() *Body { return &Body{b.transactions, b.uncles} }
diff --git a/core/vm/governance.go b/core/vm/governance.go
index c9ab74bd7..9b4e2dde6 100644
--- a/core/vm/governance.go
+++ b/core/vm/governance.go
@@ -1540,7 +1540,7 @@ func (g *GovernanceContract) proposeCRS(signedCRS []byte) ([]byte, error) {
dkgComplaints = append(dkgComplaints, x)
}
- threshold := int(g.state.DKGSetSize().Uint64() / 3 + 1)
+ threshold := int(g.state.DKGSetSize().Uint64()/3 + 1)
dkgGPK, err := core.NewDKGGroupPublicKey(
round.Uint64(), dkgMasterPKs, dkgComplaints, threshold)