diff options
| author | Matt Corallo <[email protected]> | 2012-08-15 01:21:20 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2013-01-16 12:48:02 -0500 |
| commit | 587f0f855ebeb888bdcff68b51fc11fa9aa204b9 (patch) | |
| tree | 26508b0aa1c9e47ef6d89529d4c31eaa7b6e0f44 /src/main.h | |
| parent | Automatically add any matching outputs to a filter during matching. (diff) | |
| download | discoin-587f0f855ebeb888bdcff68b51fc11fa9aa204b9.tar.xz discoin-587f0f855ebeb888bdcff68b51fc11fa9aa204b9.zip | |
Add a CBlock.GetBlockHeader
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 3290b1631..d2329af09 100644 --- a/src/main.h +++ b/src/main.h @@ -1218,6 +1218,18 @@ public: nDoS = 0; } + CBlockHeader GetBlockHeader() const + { + CBlockHeader block; + block.nVersion = nVersion; + block.hashPrevBlock = hashPrevBlock; + block.hashMerkleRoot = hashMerkleRoot; + block.nTime = nTime; + block.nBits = nBits; + block.nNonce = nNonce; + return block; + } + uint256 BuildMerkleTree() const { vMerkleTree.clear(); |