Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update networks.py for digibyte v2.0 #59

Closed
wants to merge 1 commit into from

Conversation

StormMiner
Copy link

Updated Subsidy_Function to reflect new reward scheme.
For Every 10080 Blocks after the 67200th Block: the Reward is reduced by 0.5%

Updated Subsidy_Function to reflect new reward scheme.
For Every 10080 Blocks after the 67200th Block: the Reward is reduced by 0.5%
@Rav3nPL
Copy link
Owner

Rav3nPL commented Mar 1, 2014

It can (and should) be calculated in separate function.
Subsidy function is not used all the time (block value i in block template).

@StormMiner
Copy link
Author

So, what changes do you recommend?

@StormMiner
Copy link
Author

Should we stick to 8000 * 100000000 and change it to that?

@StormMiner
Copy link
Author

oh. Nice!

@Rav3nPL
Copy link
Owner

Rav3nPL commented Mar 4, 2014

@chaeplin so it is working correctly or no?

@chaeplin
Copy link

chaeplin commented Mar 4, 2014

@StormMiner
Copy link
Author

Confirmed working!
"SUBSIDY_FUNC=lambda height: import('digibyte_subsidy').GetBlockBaseValue(height)," (thanks chaeplin)

working on pool2sg.dgbmining.com:9022

@chaeplin
Copy link

chaeplin commented Mar 6, 2014

"__ import__" :)

@StormMiner
Copy link
Author

Hi Rav,

Please update p2pool-rav with Chaeplin's subsidy function and the networks.py subfinc

The entire dgb p2pool network will switch over.

I dont think we'd mind changing the port, either..

@StormMiner StormMiner closed this Mar 6, 2014
@StormMiner StormMiner reopened this Mar 6, 2014
@chaeplin
Copy link

chaeplin commented Mar 6, 2014

@StormMiner
change of IDENTIFIER, PREFIX( p2pool/networks.py ) will be needed
to cut off forked p2pool node which does not maintained.

@StormMiner
Copy link
Author

@chaeplin what should it be changed to?

@chaeplin
Copy link

chaeplin commented Mar 6, 2014

@StormMiner
As far as I know, for p2pool/networks.py, random 19 number to hex will work.

printf '%x\n' 5234567890123456789
48a4ebc31b798115
printf '%x\n' 6234567890123456987
5685a276c2dd81db

    IDENTIFIER='da0fa0c30b6fab6a'.decode('hex'),
    PREFIX='c30fa0b60da0c3da'.decode('hex'),

to

    IDENTIFIER='48a4ebc31b798115'.decode('hex'),
    PREFIX='5685a276c2dd81db'.decode('hex'),

@StormMiner
Copy link
Author

@chaeplin sounds good.. thx
@Rav3nPL please update it, ill waterfall it to all p2pool operators... thx

@Rav3nPL
Copy link
Owner

Rav3nPL commented Mar 7, 2014

So, we are changing this (subsidy function) or not?
Those identifier and prefix too? If yes (identifier/prefix), it will start new share chain.

@gururise
Copy link

gururise commented Mar 7, 2014

I'm ready to switch over as long as the rest of the Digibyte community is as well. Is someone coordinating the switch?

@StormMiner
Copy link
Author

Majority (i.e. half) have already switched over to the new share chain (using the same identifier and prefix and also the dedicated subsidy function.)

@Rav3nPL
Copy link
Owner

Rav3nPL commented Mar 8, 2014

@StormMiner can s1 make proper pull request for this new function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants