func prepareBalances(client *benchclient.BenchClient, server *cxserver.OpencxServer) (err error) {

	if err = server.OpencxDB.AddToBalance(client.PrivKey.PubKey(), 1000000000, &coinparam.RegressionNetParams); err != nil {
		err = fmt.Errorf("Error adding a bunch of regtest to client: \n%s", err)
		return
	}

	if err = server.OpencxDB.AddToBalance(client.PrivKey.PubKey(), 1000000000, &coinparam.LiteRegNetParams); err != nil {
		err = fmt.Errorf("Error adding a bunch of litereg to client: \n%s", err)
		return
	}

	if err = server.OpencxDB.AddToBalance(client.PrivKey.PubKey(), 1000000000, &coinparam.VertcoinRegTestParams); err != nil {
		err = fmt.Errorf("Error adding a bunch of vtcreg to client: \n%s", err)
		return
	}

	return
}
// prepareBalances adds tons of money to both accounts
prepareBalances adds tons of money to both accounts
// prepareBalances adds tons of money to both accounts
func prepareBalances(client *benchclient.BenchClient, server *cxserver.OpencxServer) (err error) {
	if err = server.OpencxDB.AddToBalance(client.PrivKey.PubKey(), 1000000000, &coinparam.RegressionNetParams); err != nil {
		err = fmt.Errorf("Error adding a bunch of regtest to client: \n%s", err)
		return
	}
	if err = server.OpencxDB.AddToBalance(client.PrivKey.PubKey(), 1000000000, &coinparam.LiteRegNetParams); err != nil {
		err = fmt.Errorf("Error adding a bunch of litereg to client: \n%s", err)
		return
	}
	if err = server.OpencxDB.AddToBalance(client.PrivKey.PubKey(), 1000000000, &coinparam.VertcoinRegTestParams); err != nil {
		err = fmt.Errorf("Error adding a bunch of vtcreg to client: \n%s", err)
		return
	}
	return
}
func prepareBalances ( client * benchclient . BenchClient , server * cxserver . OpencxServer ) ( err error ) { if err = server . OpencxDB . AddToBalance ( client . PrivKey . PubKey ( ) , 1000000000 , & coinparam . RegressionNetParams ) ; err != nil { err = fmt . Errorf ( " \n " , err ) return } if err = server . OpencxDB . AddToBalance ( client . PrivKey . PubKey ( ) , 1000000000 , & coinparam . LiteRegNetParams ) ; err != nil { err = fmt . Errorf ( " \n " , err ) return } if err = server . OpencxDB . AddToBalance ( client . PrivKey . PubKey ( ) , 1000000000 , & coinparam . VertcoinRegTestParams ) ; err != nil { err = fmt . Errorf ( " \n " , err ) return } return }
prepareBalances adds tons of money to both accounts
prepareBalances adds tons of money to both accounts