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

Mine block without txs having lower nonce #791

Merged

Conversation

moreal
Copy link
Contributor

@moreal moreal commented Feb 10, 2020

There was a problem that BlockChain.MineBlock() method couldn't mine valid block when there was transactions having lower nonce than expected nonce. So, in this PR, BlockChain.MineBlock() method became to ignore the transactions and to mine.

@codecov
Copy link

codecov bot commented Feb 10, 2020

Codecov Report

Merging #791 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #791      +/-   ##
==========================================
+ Coverage   86.64%   86.66%   +0.02%     
==========================================
  Files         227      227              
  Lines       19654    19674      +20     
==========================================
+ Hits        17029    17051      +22     
  Misses       1414     1414              
+ Partials     1211     1209       -2
Impacted Files Coverage Δ
Libplanet.Tests/Blockchain/BlockChainTest.cs 98.76% <100%> (+0.01%) ⬆️
Libplanet/Blockchain/BlockChain.cs 90.66% <100%> (+0.01%) ⬆️
Libplanet/Net/Protocols/KademliaProtocol.cs 64.09% <0%> (-0.39%) ⬇️
Libplanet.Tests/Net/SwarmTest.cs 96.44% <0%> (+0.09%) ⬆️
Libplanet.Tests/Net/Protocols/TestTransport.cs 76.43% <0%> (+0.63%) ⬆️

@moreal moreal changed the title Fix a bug where transactions having lower nonce were staged [WIP] Fix a bug where transactions having lower nonce were staged Feb 10, 2020
@moreal moreal force-pushed the bugfix/not-stage-txs-having-lower-nonce branch from 92e5314 to 59cdaed Compare February 11, 2020 04:56
@moreal moreal changed the title [WIP] Fix a bug where transactions having lower nonce were staged [WIP] Mine block without txs having lower nonce Feb 11, 2020
@moreal moreal force-pushed the bugfix/not-stage-txs-having-lower-nonce branch from 59cdaed to 74be4fd Compare February 11, 2020 07:07
@moreal moreal changed the title [WIP] Mine block without txs having lower nonce Mine block without txs having lower nonce Feb 11, 2020
@moreal moreal self-assigned this Feb 11, 2020
CHANGES.md Outdated Show resolved Hide resolved
@moreal moreal force-pushed the bugfix/not-stage-txs-having-lower-nonce branch 2 times, most recently from 6a6f1f6 to 17c8965 Compare February 11, 2020 07:37
longfin
longfin previously approved these changes Feb 11, 2020
earlbread
earlbread previously approved these changes Feb 12, 2020
@longfin longfin added the bug Something isn't working label Feb 12, 2020
limebell
limebell previously approved these changes Feb 12, 2020
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
@moreal moreal dismissed stale reviews from limebell, earlbread, and longfin via 3611b57 February 12, 2020 06:58
longfin
longfin previously approved these changes Feb 12, 2020
@moreal moreal requested a review from longfin February 12, 2020 07:12
@moreal moreal merged commit c4572de into planetarium:master Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants