Closed msmania closed 11 months ago
This pull request has been mentioned on Pocket Network Forum. There might be relevant details there:
https://forum.pokt.network/t/unleashing-the-potential-of-pocket/4720/1
This pull request has been mentioned on Pocket Network Forum. There might be relevant details there:
https://forum.pokt.network/t/unleashing-the-potential-of-pocket-as-universal-rpc-provider/4797/1
@msmania Ty for linking to the commit messages. I don't want this to become a "developer workflow" discussion since I know everyone has opinions/preferences on how to use git, github, IDEs, etc.
I'm sharing mine below not in expectation of others adopting it, but just so you have context/visibility into how I work and I will accommodate your workflow as well.
GitHub
land (note: not git
), I don't pay attention to commits at all (and don't put effort into my own commits), since we end up doing a squash and merge
to main at the end.Got it. I personally thought one gigantic commit would be hard to be reviewed, or to be analyzed after merge in the future, so I split a patch to several PartX commits, following a convention in the projects I used to work. Anyway, thank you for signing off! Let's merge this!
This pull request has been mentioned on Pocket Network Forum. There might be relevant details there:
https://forum.pokt.network/t/rc-0-11-1-upgrade-and-hi/5012/1
Description
This patch introduces a new network parameter
pos/RelaysToTokensMultiplierMap
so that we can set a custom RTTM per chain. The existing parameterpos/RelaysToTokensMultiplier
serves the default RTTM if a custom RTTM is not set.This change is consensus-breaking. The new behavior is put behind a new feature key
RTTM2
. The new parameter is kept unavailable until activation.The patch also contains two tests:
Test_RTTM2_ChangeParamValue
to make sure the new parameter is kept unavailable until activating theRTTM2
feature key.TestKeeper_RewardForRelaysPerChain
to make sure the amount of relay rewards are calculated with a custom RTTM in the new parameter if it's set.Summary generated by Reviewpad on 07 Sep 23 00:52 UTC
This pull request contains the following changes:
The addition of a new test function called
TestKeeper_RewardForRelaysPerChain
. This test function verifies the rewards generated for different scenarios related to relays per chain.Modifications to the file "expectedKeepers.go" were made. A new function called "RewardForRelaysPerChain" was added, which calculates and returns a value of type
sdk.BigInt
.Changes were made to the file "module.go" related to activating additional parameters and setting a minimum signed per window value.
The file "keeper_test.go" includes the addition of a new test function called "Test_RTTM2_ChangeParamValue", which tests the change of a parameter value after a certain activation height.
A new file "proof.go" was modified to enhance the functionality and reliability of the
ExecuteProof
function in handling relay proofs.The file "param.go" now includes additional tracking of parameters introduced after genesis and skips writing them to the database until the corresponding feature activation height is reached.
The file "nodes.go" includes changes to the
AwardCoinsForRelays
function, enabling it to award coins for relays completed per chain.Modifications were made to the
PosKeeper
interface in the file "expectedKeepers.go", adding a new function calledRewardForRelaysPerChain
.The file "service_test.go" includes changes to the
RewardForRelays
method in theMockPosKeeper
struct, allowing coins to be awarded for relays completed per chain.The file "abci.go" in the
x/nodes/keeper
package includes import statement additions and changes to variable names.The go.sum file shows updates to dependencies related to the "github.com/pokt-network/tendermint" package.
These changes enhance functionality, introduce new features, and improve reliability in various parts of the codebase.