diff --git a/iguana/iguana_wallet.c b/iguana/iguana_wallet.c index 11d631d2b..65f5c0d56 100755 --- a/iguana/iguana_wallet.c +++ b/iguana/iguana_wallet.c @@ -1360,6 +1360,12 @@ TWOSTRINGS_AND_INT(bitcoinrpc,walletpassphrase,password,permanentfile,timeout) if ( coin != 0 ) { bitcoin_address(coin->changeaddr,coin->chain->pubtype,myinfo->persistent_pubkey33,33); + if ( coin->FULLNODE < 0 ) + { + char wifstr[64]; + bitcoin_priv2wif(wifstr,myinfo->persistent_priv,coin->chain->wiftype); + jumblr_importprivkey(myinfo,coin,wifstr); + } } //basilisk_unspents_update(myinfo,coin); return(retstr); diff --git a/includes/iguana_funcs.h b/includes/iguana_funcs.h index e82603144..c6a2e3a3f 100755 --- a/includes/iguana_funcs.h +++ b/includes/iguana_funcs.h @@ -616,6 +616,7 @@ bits256 mpz_div64(bits256 hash,uint64_t divval); void iguana_walletinitcheck(struct supernet_info *myinfo,struct iguana_info *coin); void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int32_t selector,int32_t modval); bits256 jumblr_privkey(struct supernet_info *myinfo,char *BTCaddr,char *KMDaddr,char *prefix); +char *jumblr_importprivkey(struct supernet_info *myinfo,struct iguana_info *coin,char *wifstr); // ------------------------------------------------------[ Preparation ]---- // Initialise a gfshare context for producing shares