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

Make LiteDBStore & FileStore to atomically store transactions #413

Merged
merged 5 commits into from
Aug 9, 2019

Conversation

dahlia
Copy link
Contributor

@dahlia dahlia commented Aug 7, 2019

This patch is an alternative solution to the same problem that #411 aims to address.

@dahlia dahlia added the bug Something isn't working label Aug 7, 2019
@dahlia dahlia added this to the 0.5.0 milestone Aug 7, 2019
@dahlia dahlia self-assigned this Aug 7, 2019
longfin
longfin previously approved these changes Aug 7, 2019
earlbread
earlbread previously approved these changes Aug 7, 2019
@dahlia dahlia dismissed stale reviews from earlbread and longfin via e345749 August 8, 2019 05:49
@dahlia dahlia force-pushed the atomic-storic-txs branch 2 times, most recently from 0049b5d to b7fa968 Compare August 8, 2019 13:31
var random = new System.Random();
var md5 = MD5.Create();
Transaction<AtomicityTestAction> tx;
for (int j = 0; j < 50; j++)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be txCount too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessarily; it's arbitrary.

earlbread
earlbread previously approved these changes Aug 8, 2019
Copy link
Member

@longfin longfin left a comment

Choose a reason for hiding this comment

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

There is a small glitch.

Libplanet/Net/Swarm.cs Outdated Show resolved Hide resolved
longfin
longfin previously approved these changes Aug 9, 2019
earlbread
earlbread previously approved these changes Aug 9, 2019
@dahlia
Copy link
Contributor Author

dahlia commented Aug 9, 2019

@earlbread @longfin Sorry, I rebased it on the current master again.

@codecov
Copy link

codecov bot commented Aug 9, 2019

Codecov Report

Merging #413 into master will increase coverage by 0.05%.
The diff coverage is 89.67%.

@@            Coverage Diff             @@
##           master     #413      +/-   ##
==========================================
+ Coverage   88.11%   88.16%   +0.05%     
==========================================
  Files         198      198              
  Lines       14067    14226     +159     
==========================================
+ Hits        12395    12543     +148     
- Misses       1361     1371      +10     
- Partials      311      312       +1
Impacted Files Coverage Δ
Libplanet.Tests/Net/SwarmTest.cs 93.88% <100%> (-0.03%) ⬇️
Libplanet/Store/LiteDBStore.cs 90.15% <77.61%> (-0.42%) ⬇️
Libplanet/Net/Swarm.cs 78.5% <92.3%> (+0.11%) ⬆️
Libplanet.Tests/Store/StoreTest.cs 98.23% <95%> (-0.61%) ⬇️
Libplanet/Store/FileStore.cs 90.43% <95.45%> (+0.41%) ⬆️
Libplanet/Crypto/PrivateKey.cs 84.68% <0%> (-0.91%) ⬇️

@dahlia dahlia merged commit 54d91b8 into planetarium:master Aug 9, 2019
limebell pushed a commit to limebell/libplanet that referenced this pull request Jul 7, 2021
…w-state

Improve HackAndSlash, RankingBattle execution time
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.

3 participants