Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Apr 16, 2018
1 parent 5d92812 commit cc6243f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,11 @@ returns the current settings along with metrics on the renter's spending.
}
},
"financialmetrics": {
"contractspending": "1234", // hastings
"contractfees": "1234", // hastings
"contractspending": "1234", // hastings (deprecated, now totalallocated)
"downloadspending": "5678", // hastings
"storagespending": "1234", // hastings
"totalallocated": "1234", // hastings
"uploadspending": "5678", // hastings
"unspent": "1234" // hastings
},
Expand Down
9 changes: 8 additions & 1 deletion doc/api/Renter.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,23 @@ returns the current settings along with metrics on the renter's spending.
// Metrics about how much the Renter has spent on storage, uploads, and
// downloads.
"financialmetrics": {
// Amount of money spent on contract fees, transaction fees and siafund fees.
"contractfees": "1234", // hastings

// How much money, in hastings, the Renter has spent on file contracts,
// including fees.
"contractspending": "1234", // hastings
"contractspending": "1234", // hastings, (deprecated, now totalallocated)

// Amount of money spent on downloads.
"downloadspending": "5678", // hastings

// Amount of money spend on storage.
"storagespending": "1234", // hastings

// Total amount of money that the renter has put into contracts. Includes
// spent money and also money that will be returned to the renter.
"totalallocated": "1234", // hastings

// Amount of money spent on uploads.
"uploadspending": "5678", // hastings

Expand Down
2 changes: 1 addition & 1 deletion modules/renter.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ type ContractorSpending struct {
// StorageSpending is the money currently spent on storage.
StorageSpending types.Currency `json:"storagespending"`
// ContractSpending is the total amount of money that the renter has put
// into the contract, whether it's locked and the renter gets that money
// into contracts, whether it's locked and the renter gets that money
// back or whether it's spent and the renter won't get the money back.
TotalAllocated types.Currency `json:"totalallocated"`
// UploadSpending is the money currently spent on uploads.
Expand Down
2 changes: 1 addition & 1 deletion siatest/testgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func synchronizationCheck(miner *TestNode, nodes map[*TestNode]struct{}) error {
return err
}
for node := range nodes {
err := Retry(100, 100*time.Millisecond, func() error {
err := Retry(600, 100*time.Millisecond, func() error {
ncg, err := node.ConsensusGet()
if err != nil {
return err
Expand Down

0 comments on commit cc6243f

Please sign in to comment.