-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-pre-merge' into db-journal-prune
- Loading branch information
Showing
48 changed files
with
8,132 additions
and
3,807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
_Before filing a new issue, please **provide the following information**._ | ||
|
||
> I'm running: | ||
> | ||
> - **Which Aion version?**: 0.2.x.{git-revision} | ||
> - **Which operating system?**: Linux | ||
> - **Which distributor and version?**: Ubuntu 16.04 | ||
> - **How installed?**: via binaries / from source | ||
> - **Are you fully synchronized?**: no / yes | ||
> - **Did you try to restart the node?**: no / yes | ||
_Your issue description goes here below. Try to include **actual** vs. **expected behavior** and **steps to reproduce** the issue._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## Notice | ||
|
||
It is not allowed to submit your PR to the master branch directly, please submit your PR to the master-pre-merge branch. | ||
|
||
## Description | ||
|
||
Please include a brief summary of the change that this pull request proposes. Include any relevant motivation and context. List any dependencies required for this change. | ||
|
||
- | ||
|
||
Fixes Issue # . | ||
|
||
## Type of change | ||
|
||
Insert **x** into the following checkboxes to confirm (eg. [x]): | ||
- [ ] Bug fix. | ||
- [ ] New feature. | ||
- [ ] Breaking change (a fix or feature that causes existing functionality to not work as expected). | ||
- [ ] Requires documentation update. | ||
|
||
## Testing | ||
|
||
Please describe the tests you used to validate this pull request. Provide any relevant details for test configurations as well as any instructions to reproduce these results. | ||
|
||
- | ||
|
||
## Verification | ||
|
||
Insert **x** into the following checkboxes to confirm (eg. [x]): | ||
- [ ] I have self-reviewed my own code and conformed to the style guidelines of this project. | ||
- [ ] New and existing tests pass locally with my changes. | ||
- [ ] I have added tests for my fix or feature. | ||
- [ ] I have made appropriate changes to the corresponding documentation. | ||
- [ ] My code generates no new warnings. | ||
- [ ] Any dependent changes have been made. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Contributing Guidelines | ||
|
||
## Do you have a question? | ||
|
||
Check out our [Aion Owner's Manual](https://github.com/aionnetwork/aion/wiki/Aion-Owner's-Manual), [Installation and Cofiguration](https://github.com/aionnetwork/aion/wiki/Installation), [FAQ](https://github.com/aionnetwork/aion/wiki/Aion-Owner's-Manual#faqs), and articles on our [wiki](https://github.com/aionnetwork/aion/wiki)! | ||
|
||
For further questions and discussions see our [Aion Forum](https://forum.aion.network/). | ||
|
||
## Report bugs! | ||
|
||
Do **not** open an issue on Github if you think your discovered bug could be a **security-relevant vulnerability**. Instead, either private message us on [gitter](https://gitter.im/aionnetwork) or send an email to [email protected]. | ||
|
||
|
||
Otherwise, just create a [new issue](https://github.com/aionnetwork/aion/issues/new) in our repository and state: | ||
|
||
- What's your aion version? | ||
- What's your operating system and version? | ||
- How did you install aion? | ||
- Is your node fully synchronized? | ||
- Did you try turning it off and on again? | ||
|
||
Also, try to include **steps to reproduce** the issue and expand on the **actual versus expected behavior**. | ||
|
||
## Contribute! | ||
|
||
If you would like to contribute to Aion, please **fork it**, fix bugs or implement features, and [propose a pull request](https://github.com/aionnetwork/aion/compare). | ||
|
||
|
||
## License. | ||
|
||
By contributing to Aion, you agree that your contributions will be licensed under the [GPLv3 License](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.aion.zero.impl; | ||
|
||
import org.aion.zero.impl.types.AionBlock; | ||
|
||
import java.math.BigInteger; | ||
|
||
/** | ||
* Wraps contextual / metadata about the block that are not | ||
* part of the block itself (not associated with PoW/PoS) | ||
*/ | ||
public class BlockContext { | ||
public final AionBlock block; | ||
public final BigInteger baseBlockReward; | ||
public final BigInteger transactionFee; | ||
|
||
public BlockContext(AionBlock block, BigInteger baseBlockReward, BigInteger transactionFee) { | ||
this.block = block; | ||
this.baseBlockReward = baseBlockReward; | ||
this.transactionFee = transactionFee; | ||
} | ||
|
||
public BlockContext(BlockContext context) { | ||
this.block = new AionBlock(context.block); | ||
this.baseBlockReward = context.baseBlockReward; | ||
this.transactionFee = context.transactionFee; | ||
} | ||
} |
Oops, something went wrong.