Skip to content

Commit

Permalink
Adds cfund request votes, dao support and dao votes to blockheader
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Tudor committed Feb 27, 2020
1 parent c83b482 commit 80b175c
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,34 @@ type Block struct {
}

type BlockHeader struct {
Hash string `json:"hash"`
Confirmations uint64 `json:"confirmations"`
Height uint64 `json:"height"`
Version uint32 `json:"version"`
VersionHex string `json:"versionHex"`
MerkleRoot string `json:"merkleroot"`
Time int64 `json:"time"`
MedianTime int64 `json:"mediantime"`
Mint float64 `json:"mint"`
Nonce uint64 `json:"nonce"`
Bits string `json:"bits"`
Difficulty float64 `json:"difficulty"`
ChainWork string `json:"chainwork"`
NcfSupply string `json:"ncfsupply"`
NcfLocked string `json:"ncflocked"`
Flags string `json:"flags"`
ProofHash string `json:"proofhash"`
EntropyBit int64 `json:"entropybit"`
Modifier string `json:"modifier"`
CfundVotes []CfundVote `json:"cfund_votes"`
PreviousBlockHash string `json:"previousblockhash"`
NextBlockHash string `json:"nextblockhash"`
Hash string `json:"hash"`
Confirmations uint64 `json:"confirmations"`
Height uint64 `json:"height"`
Version uint32 `json:"version"`
VersionHex string `json:"versionHex"`
MerkleRoot string `json:"merkleroot"`
Time int64 `json:"time"`
MedianTime int64 `json:"mediantime"`
Mint float64 `json:"mint"`
Nonce uint64 `json:"nonce"`
Bits string `json:"bits"`
Difficulty float64 `json:"difficulty"`
ChainWork string `json:"chainwork"`
NcfSupply string `json:"ncfsupply"`
NcfLocked string `json:"ncflocked"`
Flags string `json:"flags"`
ProofHash string `json:"proofhash"`
EntropyBit int64 `json:"entropybit"`
Modifier string `json:"modifier"`
CfundVotes []DaoVote `json:"cfund_votes"`
CfundRequestVotes []DaoVote `json:"cfund_request_votes"`
DaoSupport []DaoVote `json:"dao_support"`
DaoVotes []DaoVote `json:"dao_votes"`
PreviousBlockHash string `json:"previousblockhash"`
NextBlockHash string `json:"nextblockhash"`
}

type CfundVote struct {
type DaoVote struct {
Hash string `json:"hash"`
Vote int `json:"vote"`
}

0 comments on commit 80b175c

Please sign in to comment.