Apply suggestions from code review #1544

Co-Authored-By: David Núñez <david@nucypher.com>
pull/1544/head
Victoria 2020-01-15 11:19:57 +01:00 committed by vzotova
parent 68d5bc7f5b
commit a273af25a2
2 changed files with 2 additions and 2 deletions

View File

@ -477,7 +477,7 @@ class StakingEscrowAgent(EthereumContractAgent):
def set_winding_down(self, staker_address: str, value: bool) -> dict:
"""
Enable wind down for stake.
If set to True, then stakes duration will be decreasing in each period with `confirmActivity()`.
If set to True, then stakes duration will decrease in each period with `confirmActivity()`.
"""
contract_function = self.contract.functions.setWindDown(value)
receipt = self.blockchain.send_transaction(contract_function=contract_function,

View File

@ -93,7 +93,7 @@ contract StakingEscrow is Issuer {
uint16 lastActivePeriod;
bool measureWork;
uint256 completedWork;
bool windDown;
bool windDown; // this slot has 31 bytes to store additional value
uint256 reservedSlot2;
uint256 reservedSlot3;