diff --git a/jsoncmd.go b/jsoncmd.go index 0dc83c2f..5a199465 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -2182,6 +2182,9 @@ type TemplateRequest struct { SigOpLimit interface{} `json:"sigoplimit,omitempty"` SizeLimit interface{} `json:"sizelimit,omitempty"` MaxVersion uint32 `json:"maxversion,omitempty"` + + // Basic pool extension from BIP 0023. + Target string `json:"target,omitempty"` } // isFloatInt64 returns whether the passed float64 is a whole number that safely diff --git a/jsonresults.go b/jsonresults.go index 1d0fd08e..b230c89c 100644 --- a/jsonresults.go +++ b/jsonresults.go @@ -109,6 +109,15 @@ type GetBlockTemplateResult struct { LongPollID string `json:"longpollid,omitempty"` LongPollURI string `json:"longpolluri,omitempty"` SubmitOld *bool `json:"submitold,omitempty"` + + // Basic pool extension from BIP 0023. + Target string `json:"target,omitempty"` + Expires int64 `json:"expires,omitempty"` + + // Mutations from BIP 0023. + MinTime int64 `json:"mintime,omitempty"` + Mutable []string `json:"mutable,omitempty"` + NonceRange string `json:"noncerange,omitempty"` } // GetNetworkInfoResult models the data returned from the getnetworkinfo command.