From 9aed018992ed3ac0db4c25766bcd63d4c2a9dcbd Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 9 Nov 2018 02:15:38 -1100 Subject: [PATCH] Allow p2pkh as entropy vin --- src/cc/dice.cpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 3423afdbb..31b50c848 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -1099,16 +1099,21 @@ int64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbit //if ( fundingtxid != tx.vin[0].prevout.hash && vinTx.vout[tx.vin[0].prevout.n].scriptPubKey != fundingPubKey ) if ( fundingtxid != tx.vin[0].prevout.hash && vinTx.vout[1].scriptPubKey != fundingPubKey ) { - uint8_t *ptr0,*ptr1; int32_t i; char str[65]; - ptr0 = (uint8_t *)vinTx.vout[1].scriptPubKey.data(); - ptr1 = (uint8_t *)fundingPubKey.data(); - for (i=0; i