Merge pull request #16 from miketout/dev
Only zero sequence for timelocked coinbases to enable shielding all t…
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
#include "paymentdisclosuredb.h"
|
#include "paymentdisclosuredb.h"
|
||||||
|
|
||||||
using namespace libzcash;
|
using namespace libzcash;
|
||||||
|
extern int64_t ASSETCHAINS_TIMELOCKGTE;
|
||||||
|
|
||||||
static int find_output(UniValue obj, int n) {
|
static int find_output(UniValue obj, int n) {
|
||||||
UniValue outputMapValue = find_value(obj, "outputmap");
|
UniValue outputMapValue = find_value(obj, "outputmap");
|
||||||
@@ -211,7 +212,8 @@ bool AsyncRPCOperation_shieldcoinbase::main_impl() {
|
|||||||
CMutableTransaction rawTx(tx_);
|
CMutableTransaction rawTx(tx_);
|
||||||
for (ShieldCoinbaseUTXO & t : inputs_) {
|
for (ShieldCoinbaseUTXO & t : inputs_) {
|
||||||
CTxIn in(COutPoint(t.txid, t.vout));
|
CTxIn in(COutPoint(t.txid, t.vout));
|
||||||
in.nSequence = 0;
|
if (t.amount >= ASSETCHAINS_TIMELOCKGTE)
|
||||||
|
in.nSequence = 0;
|
||||||
rawTx.vin.push_back(in);
|
rawTx.vin.push_back(in);
|
||||||
}
|
}
|
||||||
tx_ = CTransaction(rawTx);
|
tx_ = CTransaction(rawTx);
|
||||||
|
|||||||
Reference in New Issue
Block a user