Skip to content

Commit

Permalink
Modifications after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
alsala committed May 29, 2024
1 parent 7ccfdae commit 792211d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/api/transaction/updateForger.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Updates an existing forger.<br>
Available from: EON 1.4.0<br>

Note: this action can be performed only for forgers with rewardShare = 0 and rewardAddress not set, and only to assign them a value.<br>
Note: this action can be performed only for forgers with rewardShare = 0 and rewardAddress not set, and only to assign them a value. This operation can be called only if at least 2 epochs are passed by since the 1.4 fork activation.<br>

**Parameters**

Expand Down
3 changes: 2 additions & 1 deletion doc/nativesc/contracts/ForgerStakesV2.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ This native smart contract manages the forger stakes from EON 1.4.0 version.

Updates an existing forger.<br>
A forger can be updated just once and only if rewardAddress == 0x000..00 and rewardShare == 0.<br>
Vrf key is split in two separate parameters, being longer than 32 bytes.
Vrf key is split in two separate parameters, being longer than 32 bytes.<br>
This operation should be called only if at least 2 epochs are passed by since the 1.4 fork activation.

- delegate

Expand Down
1 change: 1 addition & 0 deletions doc/nativesc/contracts/ForgerStakesV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ interface ForgerStakesV2 {
Updates an existing forger.
A forger can be updated just once and only if rewardAddress == 0x000..00 and rewardShare == 0.
See above the registerForger command for the parameters meaning.
This operation should be called only if at least 2 epochs are passed by since the 1.4 fork activation.
*/
function updateForger(bytes32 signPubKey, bytes32 vrf1, bytes1 vrf2, uint32 rewardShare,
address rewardAddress, bytes32 sign1_1, bytes32 sign1_2,
Expand Down
7 changes: 2 additions & 5 deletions node/src/main/java/io/horizen/eon/forks/F6Fork.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ public List<Pair<SidechainForkConsensusEpoch, OptionalSidechainFork>> getPairs()
getActivationRegtest(),
getActivationTestnet(sidechainId),
getActivationMainnet()),
new Version1_4_0Fork(true,
getActivationRegtest(),
getActivationTestnet(sidechainId),
getActivationMainnet())
new Version1_4_0Fork(true)
)
);
}
}
}

0 comments on commit 792211d

Please sign in to comment.