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

Combine creating and staging transaction interface #294

Merged
merged 2 commits into from
Jun 20, 2019

Conversation

earlbread
Copy link
Contributor

@earlbread earlbread commented Jun 18, 2019

  • Combines creating and staging of transaction interfaces with the BlockChain<T>.MakeTransaction() method.

@earlbread earlbread requested review from dahlia and longfin June 18, 2019 04:47
@earlbread earlbread self-assigned this Jun 18, 2019
@earlbread earlbread force-pushed the fix-transaction-interface branch 2 times, most recently from 7757ab6 to 92b9453 Compare June 18, 2019 05:15
@codecov
Copy link

codecov bot commented Jun 18, 2019

Codecov Report

Merging #294 into master will increase coverage by 0.05%.
The diff coverage is 98.6%.

@@            Coverage Diff             @@
##           master     #294      +/-   ##
==========================================
+ Coverage   87.38%   87.44%   +0.05%     
==========================================
  Files         186      186              
  Lines       12449    12502      +53     
==========================================
+ Hits        10879    10932      +53     
+ Misses       1323     1321       -2     
- Partials      247      249       +2
Impacted Files Coverage Δ
Libplanet/Tx/Transaction.cs 94.61% <100%> (ø) ⬆️
Libplanet/Blocks/Block.cs 83.77% <100%> (ø) ⬆️
Libplanet/Blockchain/BlockChain.cs 96.41% <97.5%> (-0.13%) ⬇️
Libplanet.Tests/Blockchain/BlockChainTest.cs 98.57% <97.56%> (-0.06%) ⬇️
Libplanet.Tests/Common/Action/DumbAction.cs 78.12% <0%> (+1.56%) ⬆️

Libplanet/Blocks/Block.cs Outdated Show resolved Hide resolved
@earlbread earlbread force-pushed the fix-transaction-interface branch from 92b9453 to 4ef0cad Compare June 18, 2019 06:38
longfin
longfin previously approved these changes Jun 18, 2019
actionsArray,
sig
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this method have to be removed at all? I thought this is fine to remain, and BlockChain<T>.MakeTransaction() method could be a thin façade on this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's okay to leave this, but is there a use case?

Libplanet/Blocks/Block.cs Show resolved Hide resolved
@earlbread earlbread force-pushed the fix-transaction-interface branch 2 times, most recently from 5b407b3 to ad0a9b8 Compare June 19, 2019 10:02
@earlbread earlbread force-pushed the fix-transaction-interface branch from ad0a9b8 to 03a4753 Compare June 20, 2019 09:51
@earlbread
Copy link
Contributor Author

I made Transaction<T>.Create(), BlockChain<T>.GetNonce() and BlockChain<T>.StageTransactions() to public again to have options to create Transaction.

@earlbread earlbread requested review from dahlia and longfin June 20, 2019 09:53
@earlbread earlbread merged commit 1863473 into planetarium:master Jun 20, 2019
@earlbread earlbread deleted the fix-transaction-interface branch June 20, 2019 11:13
@longfin longfin mentioned this pull request Jun 24, 2019
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.

3 participants