wallet/supernode.js
function determineIfWalletExists(handleResult){
	db.query("SELECT wallet FROM wallets", function(rows){
		if (rows.length > 1)
			throw Error("more than 1 wallet");
		handleResult(rows.length > 0);
	});
}
function determineIfWalletExists(handleResult){
	db.query("SELECT wallet FROM wallets", function(rows){
		if (rows.length > 1)
			throw Error("more than 1 wallet");
		handleResult(rows.length > 0);
	});
}
function determineIfWalletExists ( handleResult ) { db . query ( "SELECT wallet FROM wallets" , function ( rows ) { if ( rows . length > 1 ) throw Error ( "more than 1 wallet" ) ; handleResult ( rows . length > 0 ) ; } ) ; }
determin if wallet exists
@param {function} handleResult - callback
determin if wallet exists