Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Rebase October stake changes #9

Closed
cbeams opened this issue Nov 9, 2017 · 10 comments
Closed

Rebase October stake changes #9

cbeams opened this issue Nov 9, 2017 · 10 comments
Assignees

Comments

@cbeams
Copy link
Member

cbeams commented Nov 9, 2017

Now that October voting is complete, we need to rebase stake back to 2.5 MM in a new distribution. It should be possible to do this using the existing set of testnet addresses and testnet coins, in a "re-distribution" transaction. Note that, per the spreadsheet, there was one new BSQ address added that does not yet have a testnet address assigned to it.

cbeams added a commit to bisq-network/bisq-docs that referenced this issue Nov 9, 2017
@ManfredKarrer
Copy link
Member

Not 100% sure what you mean with re-distribution tx.
My plan was to use all existing bsq utxos as input for the new genesis and add the amount of mining fee needed.

@cbeams
Copy link
Member Author

cbeams commented Nov 9, 2017

That is in fact what I mean.

@ManfredKarrer
Copy link
Member

Done: https://testnet.smartbit.com.au/tx/f8b65c65624bd822f92480c39959f8ae4a6f94a9841c1625464ec6353cfba1d9

There was 14 BSQ less due rounding issues. I added 1 BSQ to the last 14 addresses.

@ManfredKarrer
Copy link
Member

Seednode updated with new version and tested with a Bisq testnet app. Code committed at bisq-network/bisq@7067b0f

@cbeams
Copy link
Member Author

cbeams commented Nov 10, 2017

Great, thanks @ManfredKarrer! I'm reopening this to make sure that we follow up with two things:

@ManfredKarrer
Copy link
Member

@cbeams Ah forgot the explorer. I will update the jar file there but I think @grazcoin has to do something on the server as well

@ManfredKarrer
Copy link
Member

I updated the jar and restarted it.
@grazcoin: Can you document somewhere what need to be done on the http server side?

cbeams added a commit to cbeams/ledger that referenced this issue Nov 14, 2017
This change reflects the new genesis distribution at [1]. Numbers were
generated with the following commands:

    cut -d, -f4 stake.csv \
        | awk '{n=($1*(2500000/2548500)); printf("%0.2f\n", n)}' \
        | awk '{n+=$1}END{printf("%0.2f\n", n)}' \
        > rebased-stake.csv;
        mv rebased-stake.csv stake.csv;

where the number 2548500 above was the amount of BSQ *after* October
voting was complete, i.e. the sum of the 4th column of the stake.csv
file prior to running the command above.

Note that 2-decimal precision was used here in order to have the rebased
value sum to exactly 2,500,000.00 BSQ. The spreadsheet calculation that
led up to the redistribution transaction linked below did not have this
precision, and due to rounding caused the resulting amount of BSQ to
equal 2,499,986 BSQ, which is why the last 14 addresses had 1 BSQ added
to them.

The 2-decimal precision numbers in this change are what have been fed
into the BSQ stake and voting spreadsheet at [2] (see the 2017.11
worksheet). Even though these numbers are slightly different than what's
represented on the testnet blockchain, we'll use them going forward into
next month's redistribution transaction, such that we get accurate
numbers going forward. We'll probably have to work with 2-decimal
precision in everything we do from this point on.

See bisq-network/dao#9

[1]: https://testnet.smartbit.com.au/tx/f8b65c65624bd822f92480c39959f8ae4a6f94a9841c1625464ec6353cfba1d9
[2]: https://docs.google.com/spreadsheets/d/1xlXDswj3251BPCOcII-UyWlX7o7jMkfYBE-IZ5te5Ck/edit#gid=1776326737
@cbeams
Copy link
Member Author

cbeams commented Nov 14, 2017

Closing as complete. Per the commit above, I've now updated the textfiles in the cbeams/ledger repository to reflect the rebased BSQ stake after October voting, and I've also updated the 2017.11 BSQ stake and vote tracking spreadsheet to reflect the new numbers. Please see the commit comment for further details.

Also, I see that after @ManfredKarrer updated and restarted the explorer, that both genesis transactions are showing up at https://explorer.bisq.network/testnet/. This seems like enough for now, i.e. no further changes necessary from @grazcoin's side. Here's a screenshot:

image

@cbeams cbeams closed this as completed Nov 14, 2017
@ManfredKarrer ManfredKarrer reopened this Nov 14, 2017
@ManfredKarrer
Copy link
Member

The old genesis tx is still marked as genesis tx and the new one as normal tx. So it still needs a fix from @grazcoin

@cbeams
Copy link
Member Author

cbeams commented Jan 8, 2018

Reclosing as dropped. We decided not to rebase every month, so the original testnet genesis tx is fine to stay the way it is for the remainder of Phase Zero.

See bisq-network/docs#2e566732808cde0c61fab7fd95be46ac79651162

@cbeams cbeams closed this as completed Jan 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants