Skip to content

Fixes Payment Request payout when Proposal is expired - #370

Merged
proletesseract merged 15 commits into
navcoin:masterfrom
aguycalled:fix-pr-payout-expired-proposal
Dec 17, 2018
Merged

Fixes Payment Request payout when Proposal is expired#370
proletesseract merged 15 commits into
navcoin:masterfrom
aguycalled:fix-pr-payout-expired-proposal

Conversation

@aguycalled

Copy link
Copy Markdown
Member

Adds a new state for proposals (PENDING_VOTING_PREQ). This transitory state
will be asigned to expired proposals with payment requests pending being
voted. Once a expired proposal runs out of pending payment requests,
the proposal will move to EXPIRED state.
Payment Requests voting can only start while the state of the parent Proposal
is ACCEPTED.
Payouts to Payment Requests are only authorized when a Proposal is in
ACCEPTED or PENDING_VOTING_PREQ state.
Includes RPC test.

Adds a new state for proposals (PENDING_VOTING_PREQ). This transitory state
will be asigned to expired proposals with payment requests pending being
voted. Once a expired proposal runs out of pending payment requests,
the proposal will move to EXPIRED state.
Payment Requests voting can only start while the state of the parent Proposal
is ACCEPTED.
Payouts to Payment Requests are only authorized when a Proposal is in
ACCEPTED or PENDING_VOTING_PREQ state.
Includes RPC test.
aguycalled pushed a commit to aguycalled/navcoin-core that referenced this pull request Dec 14, 2018
- Bumps version to v4.5.1
- Sets a fork height at 2722100
- Requires blocks to signal version bit 21 when fork happens.
Merge after navcoin#367 navcoin#369 and navcoin#370 or when its related issues are fixed.
@aguycalled aguycalled mentioned this pull request Dec 14, 2018
@matt-auckland matt-auckland self-assigned this Dec 15, 2018
@matt-auckland

Copy link
Copy Markdown
Member

I'm checking this out and testing it

@matt-auckland matt-auckland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se my comment

Comment thread src/main.cpp Outdated

@marcus290 marcus290 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the bug manually and with the new tests and this patch fixes it.

I added one more test here:
aguycalled#48

* adds assert after try blocks and checks for preq creation during new state

* fixes update of PENDING_VOTING_PREQ state

* adds test to check accepted preq stay accepted

* assigns cycle number variable based on cfundstats
@proletesseract
proletesseract merged commit ddeeed6 into navcoin:master Dec 17, 2018
aguycalled pushed a commit to skreener/navcoin-core that referenced this pull request Feb 3, 2019
- Bumps version to v4.5.1
- Sets a fork height at 2722100
- Requires blocks to signal version bit 21 when fork happens.
Merge after navcoin#367 navcoin#369 and navcoin#370 or when its related issues are fixed.
aguycalled pushed a commit to skreener/navcoin-core that referenced this pull request Feb 3, 2019
…proposal

Fixes Payment Request payout when Proposal is expired
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.

4 participants