mirror of https://github.com/nucypher/nucypher.git
Apply suggestions from code review #1544
Co-Authored-By: David Núñez <david@nucypher.com>pull/1544/head
parent
68d5bc7f5b
commit
a273af25a2
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue