update GetMempoolEntryResult to v0.19.0

https://bitcoincore.org/en/doc/0.19.0/rpc/blockchain/getmempoolentry/
This commit is contained in:
Jake Sylvestre 2020-01-22 01:13:15 -05:00 committed by John C. Vernaleo
parent d9ce6b037f
commit a8eadd2ce4

View file

@ -234,23 +234,35 @@ type GetBlockTemplateResult struct {
RejectReasion string `json:"reject-reason,omitempty"` RejectReasion string `json:"reject-reason,omitempty"`
} }
// GetMempoolEntryResult models the data returned from the getmempoolentry's
// fee field
type MempoolFees struct {
Base float64 `json:"base"`
Modified float64 `json:"base"`
Ancestor float64 `json:"ancestor"`
Descendant float64 `json:"descendant"`
}
// GetMempoolEntryResult models the data returned from the getmempoolentry // GetMempoolEntryResult models the data returned from the getmempoolentry
// command. // command.
type GetMempoolEntryResult struct { type GetMempoolEntryResult struct {
Size int32 `json:"size"` VSize int32 `json:"vsize"`
Fee float64 `json:"fee"` Size int32 `json:"size"`
ModifiedFee float64 `json:"modifiedfee"` Weight int64 `json:"weight"`
Time int64 `json:"time"` Fee float64 `json:"fee"`
Height int64 `json:"height"` ModifiedFee float64 `json:"modifiedfee"`
StartingPriority float64 `json:"startingpriority"` Time int64 `json:"time"`
CurrentPriority float64 `json:"currentpriority"` Height int64 `json:"height"`
DescendantCount int64 `json:"descendantcount"` DescendantCount int64 `json:"descendantcount"`
DescendantSize int64 `json:"descendantsize"` DescendantSize int64 `json:"descendantsize"`
DescendantFees float64 `json:"descendantfees"` DescendantFees float64 `json:"descendantfees"`
AncestorCount int64 `json:"ancestorcount"` AncestorCount int64 `json:"ancestorcount"`
AncestorSize int64 `json:"ancestorsize"` AncestorSize int64 `json:"ancestorsize"`
AncestorFees float64 `json:"ancestorfees"` AncestorFees float64 `json:"ancestorfees"`
Depends []string `json:"depends"` WTxId string `json:"wtxid"`
Fees MempoolFees `json:"fees"`
Depends []string `json:"depends"`
} }
// GetMempoolInfoResult models the data returned from the getmempoolinfo // GetMempoolInfoResult models the data returned from the getmempoolinfo