#NEWLINE# @ classmethod #NEWLINE# def make_interface( cls , model , params ) : #NEWLINE# #INDENT# use = params . get ( 'interface' , 'helloblock' ) #NEWLINE# if model . testnet : #NEWLINE# #INDENT# if ( use != 'helloblock' ) : #NEWLINE# #INDENT# use = 'abe_testnet' #NEWLINE# #UNINDENT# #UNINDENT# if ( use == 'helloblock' ) : #NEWLINE# #INDENT# return HelloBlockInterface ( model . testnet ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( use == 'blockchain.info' ) : #NEWLINE# #INDENT# return BlockchainInfoInterface ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( use == 'abe_testnet' ) : #NEWLINE# #INDENT# return AbeInterface ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( use == 'electrum' ) : #NEWLINE# #INDENT# electrum_server = params . get ( 'electrum_server' , DEFAULT_ELECTRUM_SERVER ) #NEWLINE# electrum_port = params . get ( 'electrum_port' , DEFAULT_ELECTRUM_PORT ) #NEWLINE# return ElectrumInterface ( electrum_server , electrum_port ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'Unknown service for UTXOFetcher!' )