#NEWLINE# def server_to_client_config( server_config ) : #NEWLINE# #INDENT# client_config = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# config_keys = { #NEWLINE# #INDENT# 'backend-connect' : 'wallet-connect' , #NEWLINE# 'backend-port' : 'wallet-port' , #NEWLINE# 'backend-user' : 'wallet-user' , #NEWLINE# 'backend-password' : 'wallet-password' , #NEWLINE# 'backend-ssl' : 'wallet-ssl' , #NEWLINE# 'backend-ssl-verify' : 'wallet-ssl-verify' , #NEWLINE# 'rpc-host' : 'counterparty-rpc-connect' , #NEWLINE# 'rpc-port' : 'counterparty-rpc-port' , #NEWLINE# 'rpc-user' : 'counterparty-rpc-user' , #NEWLINE# 'rpc-password' : 'counterparty-rpc-password' , #NEWLINE# #UNINDENT# } #NEWLINE# for server_key in config_keys : #NEWLINE# #INDENT# if ( server_key in server_config ) : #NEWLINE# #INDENT# client_key = config_keys [ server_key ] #NEWLINE# client_config [ client_key ] = server_config [ server_key ] #NEWLINE# #UNINDENT# #UNINDENT# return client_config