-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc0427d
commit e222a3f
Showing
8 changed files
with
68 additions
and
13 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 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 |
---|---|---|
|
@@ -181,3 +181,9 @@ | |
# EIP150 | ||
# | ||
EIP150_MAINNET_BLOCK = 2463000 | ||
|
||
|
||
# | ||
# Spurious Dragon | ||
# | ||
SPURIOUS_DRAGON_MAINNET_BLOCK = 2675000 |
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,9 @@ | ||
from ..homestead import HomesteadVM | ||
|
||
from .blocks import SpuriousDragonBlock | ||
|
||
|
||
SpuriousDragonVM = HomesteadVM.configure( | ||
name='SpuriousDragonVM', | ||
_block_class=SpuriousDragonBlock, | ||
) |
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,21 @@ | ||
from rlp.sedes import ( | ||
CountableList, | ||
) | ||
from evm.rlp.headers import ( | ||
BlockHeader, | ||
) | ||
from evm.vm.forks.homestead.blocks import ( | ||
HomesteadBlock, | ||
) | ||
from .transactions import ( | ||
SpuriousDragonTransaction, | ||
) | ||
|
||
|
||
class SpuriousDragonBlock(HomesteadBlock): | ||
transaction_class = SpuriousDragonTransaction | ||
fields = [ | ||
('header', BlockHeader), | ||
('transactions', CountableList(SpuriousDragonTransaction)), | ||
('uncles', CountableList(BlockHeader)) | ||
] |
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
EIP150VM, | ||
FrontierVM, | ||
HomesteadVM, | ||
SpuriousDragonVM, | ||
) | ||
from evm.rlp.headers import ( | ||
BlockHeader, | ||
|
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