Skip to content

Commit

Permalink
Merge pull request #110 from HorizenOfficial/as/EON_1857
Browse files Browse the repository at this point in the history
Fix for issue EON-1857
  • Loading branch information
paolocappelletti authored May 30, 2024
2 parents 9e9ee54 + 792211d commit 57fb729
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 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
2 changes: 1 addition & 1 deletion node/src/main/java/io/horizen/eon/forks/F6Fork.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ public List<Pair<SidechainForkConsensusEpoch, OptionalSidechainFork>> getPairs()
)
);
}
}
}

0 comments on commit 57fb729

Please sign in to comment.