WIP: Fix host counter #2884
base: master
Are you sure you want to change the base?
WIP: Fix host counter #2884
Commits on Mar 16, 2018
-
Move the updating of financial metrics to the end of the function. Wh…
…en this function is called multiple times from negotiate.go line 252, this prevents adding values multiple times.
Configuration menu - View commit details
-
Copy full SHA for e15c6d8 - Browse repository at this point
Copy the full SHA e15c6d8View commit details -
Make sure the contract counter is only increased when it is a new con…
…tract and not a renewal
Configuration menu - View commit details
-
Copy full SHA for 9d08da8 - Browse repository at this point
Copy the full SHA 9d08da8View commit details
Commits on Mar 17, 2018
-
Revert "Make sure the contract counter is only increased when it is a…
… new contract and not a renewal" This reverts commit 9d08da8. Contract counter should be increased as it is forming a new obligation for new contracts as well for renewals.
Configuration menu - View commit details
-
Copy full SHA for 93339cf - Browse repository at this point
Copy the full SHA 93339cfView commit details -
Revert "Move the updating of financial metrics to the end of the func…
…tion. When this function is called multiple times from negotiate.go line 252, this prevents adding values multiple times." This reverts commit e15c6d8. When there is an error with the queuing of the action items, the storage obligation will be removed with status 'obligationRejected' and the function will return. Placing the financial metrics update at the end of the function will in this case never be reached.
Configuration menu - View commit details
-
Copy full SHA for 3beda72 - Browse repository at this point
Copy the full SHA 3beda72View commit details -
Add SectorRoots outside the database update. If this function fails,
there is nothing to revert.
Configuration menu - View commit details
-
Copy full SHA for d553d83 - Browse repository at this point
Copy the full SHA d553d83View commit details -
Make the database update function revert any changes in case of an er…
…ror. Financial metrics are only updated when there are no errors.
Configuration menu - View commit details
-
Copy full SHA for 5585cf0 - Browse repository at this point
Copy the full SHA 5585cf0View commit details -
Remove storage obligation with status obligationRejected when the
AcceptTransactionSet call returns with an error. This should reset the host to the original state. However, the rejected storage obligation will stay in the database as rejected without SectorRoots.
Configuration menu - View commit details
-
Copy full SHA for 76d87f5 - Browse repository at this point
Copy the full SHA 76d87f5View commit details