From 3c3451b8b63552e8f45ebcab139b2f4bb898cadd Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 00:30:49 -1100 Subject: [PATCH] Optimize dice plan scan --- src/cc/dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 2d32db9f7..d093f9332 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -507,7 +507,7 @@ bool DicePlanExists(CScript &fundingPubKey,uint256 &fundingtxid,struct CCcontrac char CCaddr[64]; uint64_t sbits; uint256 txid,hashBlock; CTransaction tx; std::vector > txids; GetCCaddress(cp,CCaddr,dicepk); - SetCCtxids(txids,CCaddr); + SetCCtxids(txids,cp->normaladdr); if ( fundingtxid != zeroid ) // avoid scan unless creating new funding plan { if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.vout.size() > 1 && ConstrainVout(tx.vout[0],1,CCaddr,0) != 0 )