-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* blockchain app content * review changes
- Loading branch information
Showing
10 changed files
with
33 additions
and
93 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,69 +1,17 @@ | ||
# Exthereum Blockchain [![CircleCI](https://circleci.com/gh/exthereum/blockchain.svg?style=svg)](https://circleci.com/gh/exthereum/blockchain) | ||
# Mana-Ethereum Blockchain [![CircleCI](https://circleci.com/gh/exthereum/blockchain.svg?style=svg)](https://circleci.com/gh/exthereum/blockchain) | ||
|
||
Elixir implementation of Ethereum's Blockchain. | ||
An Elixir implementation of the Ethereum Blockchain. | ||
This includes functionality to build and verify a chain of Ethereum blocks that may be advertised from any peer. | ||
We complete the resultant state of the blocktree and form a canonical blockchain based on difficulty. | ||
|
||
Exthereum's blocks are specified in a variety of sections throughout [the yellow paper](https://ethereum.github.io/yellowpaper/paper.pdf), | ||
but it's best to start looking under Section 4.3. | ||
Mana-Ethereum's blocks are specified in a variety of sections throughout [the yellow paper](https://ethereum.github.io/yellowpaper/paper.pdf). Blocks, State and Transactions begin in section 4. | ||
|
||
## Installation | ||
|
||
```bash | ||
export "CFLAGS=-I/usr/local/include -L/usr/local/lib" | ||
cd deps/libsecp256k1 && rebar compile | ||
mix compile | ||
``` | ||
Installation is handled through the bin/setup procedure in the [Mana-Ethereum README](https://github.com/poanetwork/mana). | ||
|
||
## Debugging | ||
|
||
To debug a given run of the blockchain, you can set breakpoints on contract addresses by | ||
setting the `BREAKPOINT` environment variable and specifying a contract address to break on. E.g. | ||
|
||
```bash | ||
BREAKPOINT=bc1ffc1620da1468624a596cb841d35e6b2f1fb6 iex -S mix | ||
|
||
... | ||
|
||
00:04:18.739 [warn] Debugger has been enabled. Set breakpoint #1 on contract address 0xbc1ffc1620da1468624a596cb841d35e6b2f1fb6. | ||
|
||
... | ||
|
||
-- Breakpoint #1 triggered with conditions contract address 0xbc1ffc1620da1468624a596cb841d35e6b2f1fb6 (start) -- | ||
|
||
gas: 277888 | pc: 0 | memory: 0 | words: 0 | # stack: 0 | ||
|
||
----> [ 0] push2 | ||
[ 1] 0 | ||
[ 2] 4 | ||
[ 3] dup1 | ||
[ 4] push2 | ||
[ 5] 0 | ||
[ 6] 14 | ||
[ 7] push1 | ||
[ 8] 0 | ||
[ 9] codecopy | ||
|
||
Enter a debug command or type `h` for help. | ||
|
||
>> | ||
``` | ||
|
||
## Contributing | ||
|
||
1. [Fork it!](https://github.com/exthereum/blockchain/fork) | ||
2. Create your feature branch (`git checkout -b my-new-feature`) | ||
3. Commit your changes (`git commit -am 'Add some feature'`) | ||
4. Push to the branch (`git push origin my-new-feature`) | ||
5. Create new Pull Request | ||
|
||
## Author | ||
|
||
Geoffrey Hayes (@hayesgm) | ||
Ayrat Badykov (@ayrat555) | ||
Mason Fischer (@masonforest) | ||
|
||
## License | ||
See the [CONTRIBUTING](CONTRIBUTING.md) document for contribution, testing and pull request protocol. | ||
|
||
Exthereum's Blockchain is released under the MIT License. | ||
See the LICENSE file for further details. |
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
defmodule Blockchain do | ||
@moduledoc """ | ||
Documentation for Blockchain. | ||
The Blockchain application is responsible for Ethereum blockchain processes and capabilities as defined in the [Ethereum yellow paper](https://ethereum.github.io/yellowpaper/paper.pdf) | ||
Application functionality includes: | ||
* Block encoding | ||
* Adding blocks to the block tree to form a consistent blockchain | ||
* Chain specific information | ||
* Genesis block generation | ||
* Transaction serialization | ||
* Contract creation and message calls | ||
""" | ||
end |
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
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