mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-06 18:53:21 +01:00
Move scriptutils.o to wallet
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
6a8d15cc16
commit
0d2fa14a34
@@ -7,7 +7,10 @@
|
||||
#include "main.h"
|
||||
#include "script/script.h"
|
||||
#include "script/sign.h"
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
#include "scriptutils.h"
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -95,7 +98,9 @@ BOOST_AUTO_TEST_CASE(sign)
|
||||
txTo[i].vin[0].prevout.n = i;
|
||||
txTo[i].vin[0].prevout.hash = txFrom.GetHash();
|
||||
txTo[i].vout[0].nValue = 1;
|
||||
#ifdef ENABLE_WALLET
|
||||
BOOST_CHECK_MESSAGE(IsMine(keystore, txFrom.vout[i].scriptPubKey), strprintf("IsMine %d", i));
|
||||
#endif
|
||||
}
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
@@ -189,7 +194,9 @@ BOOST_AUTO_TEST_CASE(set)
|
||||
txTo[i].vin[0].prevout.hash = txFrom.GetHash();
|
||||
txTo[i].vout[0].nValue = 1*CENT;
|
||||
txTo[i].vout[0].scriptPubKey = inner[i];
|
||||
#ifdef ENABLE_WALLET
|
||||
BOOST_CHECK_MESSAGE(IsMine(keystore, txFrom.vout[i].scriptPubKey), strprintf("IsMine %d", i));
|
||||
#endif
|
||||
}
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user