fixed nameclaim link
This commit is contained in:
parent
11c5398c71
commit
bf1b4f03ec
5 changed files with 12 additions and 5 deletions
|
@ -394,6 +394,7 @@ libbitcoin_common_a_SOURCES = \
|
|||
key.cpp \
|
||||
key_io.cpp \
|
||||
keystore.cpp \
|
||||
nameclaim.cpp \
|
||||
netaddress.cpp \
|
||||
netbase.cpp \
|
||||
policy/feerate.cpp \
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include <util.h>
|
||||
#include <utilstrencodings.h>
|
||||
|
||||
#include "nameclaim.h"
|
||||
|
||||
|
||||
CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ static const int MAX_OPS_PER_SCRIPT = 201;
|
|||
static const int MAX_PUBKEYS_PER_MULTISIG = 20;
|
||||
|
||||
// Maximum script length in bytes
|
||||
static const int MAX_SCRIPT_SIZE = 10000;
|
||||
static const int MAX_SCRIPT_SIZE = 20005;
|
||||
|
||||
// Maximum number of values on script interpreter stack
|
||||
static const int MAX_STACK_SIZE = 1000;
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include <script/standard.h>
|
||||
#include <uint256.h>
|
||||
|
||||
#include "nameclaim.h"
|
||||
|
||||
typedef std::vector<unsigned char> valtype;
|
||||
|
||||
MutableTransactionSignatureCreator::MutableTransactionSignatureCreator(const CMutableTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, int nHashTypeIn) : txTo(txToIn), nIn(nInIn), nHashType(nHashTypeIn), amount(amountIn), checker(txTo, nIn, amountIn) {}
|
||||
|
@ -100,8 +102,10 @@ static bool SignStep(const SigningProvider& provider, const BaseSignatureCreator
|
|||
ret.clear();
|
||||
std::vector<unsigned char> sig;
|
||||
|
||||
const CScript& strippedScriptPubKey = StripClaimScriptPrefix(scriptPubKey);
|
||||
|
||||
std::vector<valtype> vSolutions;
|
||||
if (!Solver(scriptPubKey, whichTypeRet, vSolutions))
|
||||
if (!Solver(strippedScriptPubKey, whichTypeRet, vSolutions))
|
||||
return false;
|
||||
|
||||
switch (whichTypeRet)
|
||||
|
|
|
@ -63,9 +63,9 @@ public:
|
|||
void Unserialize(Stream &s) {
|
||||
unsigned int nCode = 0;
|
||||
::Unserialize(s, VARINT(nCode));
|
||||
txout->nHeight = nCode / 4;
|
||||
txout->fCoinBase = nCode & 2;
|
||||
fLastUnspent = nCode & 1;
|
||||
txout->nHeight = nCode / 4; // >> 2?
|
||||
txout->fCoinBase = (nCode & 2) ? 1: 0;
|
||||
fLastUnspent = (nCode & 1) > 0;
|
||||
if (fLastUnspent)
|
||||
::Unserialize(s, VARINT(this->nVersion));
|
||||
::Unserialize(s, CTxOutCompressor(REF(txout->out)));
|
||||
|
|
Loading…
Add table
Reference in a new issue