Skip to content

Commit

Permalink
Merge pull request #1 from TRON-US/node-storage
Browse files Browse the repository at this point in the history
Separate node storage info from general node info
  • Loading branch information
taiyangc authored Aug 27, 2019
2 parents 315f100 + 6a79c76 commit 6cc13ea
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions info/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ type Node struct {
NumPeers uint64 `sql:"peers_connected,notnull" json:"peers_connected"`
Reputation float64 `sql:"reputation,notnull" json:"reputation"`
StoragePriceDeal uint64 `sql:"storage_price_deal" json:"storage_price_deal"`
StoragePriceAsk uint64 `sql:"storage_price_ask" json:"storage_price_ask"`
BandwidthPriceDeal uint64 `sql:"bandwidth_price_deal" json:"bandwidth_price_deal"`
BandwidthPriceAsk uint64 `sql:"bandwidth_price_ask" json:"bandwidth_price_ask"`
StorageTimeMin uint64 `sql:"storage_time_min" json:"storage_time_min"`
BandwidthLimit uint64 `sql:"bandwidth_limit" json:"bandwidth_limit"`
CollateralStake uint64 `sql:"collateral_stake" json:"collateral_stake"`

NodeStorage
}

// Host storage publishable information
type NodeStorage struct {
StoragePriceAsk uint64 `sql:"storage_price_ask" json:"storage_price_ask"`
BandwidthPriceAsk uint64 `sql:"bandwidth_price_ask" json:"bandwidth_price_ask"`
StorageTimeMin uint64 `sql:"storage_time_min" json:"storage_time_min"`
BandwidthLimit uint64 `sql:"bandwidth_limit" json:"bandwidth_limit"`
CollateralStake uint64 `sql:"collateral_stake" json:"collateral_stake"`
}

0 comments on commit 6cc13ea

Please sign in to comment.