Skip to content

Commit

Permalink
Testnet script will jump to current time
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vandeberg committed Sep 8, 2016
1 parent d0a18fd commit 745c1f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python_scripts/steemdebugnode/private_testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datetime import datetime
from pathlib import Path
from time import sleep
from time import time

# local imports
from steemdebugnode import DebugNode
Expand Down Expand Up @@ -62,7 +63,7 @@ def main( ):
if( not data_dir.is_dir() ):
print( 'Error: data_dir is not a directory' )

plguins = list()
plugins = list()
if( args.plugins ):
plugins = args.plugins.split()

Expand All @@ -76,7 +77,7 @@ def main( ):
debug_node = DebugNode( str( steemd ), str( data_dir ), plugins=plugins, apis=apis, args='--replay', steemd_err=sys.stderr )

with debug_node:
debug_node.debug_generate_blocks( 1 )
debug_node.debug_generate_blocks_until( int( time() ), True )
debug_node.debug_set_hardfork( 14 )
print( 'Done!' )
print( 'Feel free to interact with this node via RPC calls for the cli wallet.' )
Expand Down

0 comments on commit 745c1f7

Please sign in to comment.