Added RLP tail shaver code

This commit is contained in:
vub 2017-03-10 09:47:04 -05:00
parent ae326872d6
commit f239603ff9
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,9 @@ owner: address
# Total deposits destroyed
total_destroyed: wei_value
# RLP decoder address
rlp_decoder: address
def __init__():
# Set Casper parameters
self.interest_rate = 0.000001
@ -95,6 +98,8 @@ def __init__():
}
# Initialize the epoch counter
self.current_epoch = block.number / self.epoch_length
# Set the RLP decoder address
self.rlp_decoder = 0x2dadb850a35439906b82be11dfe3e00d5f944213
# Called at the start of any epoch
def initialize_epoch(epoch: num):