#NEWLINE# def _configure_node_network( config , num_validators , node_num , seed ) : #NEWLINE# #INDENT# assert ( node_num < num_validators ) #NEWLINE# PBKDF2_CONSTANTS [ 'c' ] = 100 #NEWLINE# config [ 'node' ] [ 'privkey_hex' ] = mk_privkey ( ( '%d:udp:%d' % ( seed , node_num ) ) ) . encode ( 'hex' ) #NEWLINE# validators = [ privtoaddr ( mk_privkey ( ( '%d:account:%d' % ( seed , i ) ) ) ) for i in range ( num_validators ) ] #NEWLINE# config [ 'hdc' ] [ 'validators' ] = validators #NEWLINE# account = Account . new ( password = '' , key = mk_privkey ( ( '%d:account:%d' % ( seed , node_num ) ) ) ) #NEWLINE# assert ( account . address in validators ) #NEWLINE# return ( config , account )