remove inputMap from serialization
This commit is contained in:
parent
1a28683e4a
commit
edfa6837a6
|
@ -732,8 +732,6 @@ TransactionBuilder.prototype.toObj = function() {
|
||||||
//opts :
|
//opts :
|
||||||
signhash : this.signhash,
|
signhash : this.signhash,
|
||||||
spendUnconfirmed : this.spendUnconfirmed,
|
spendUnconfirmed : this.spendUnconfirmed,
|
||||||
|
|
||||||
inputMap : this.inputMap,
|
|
||||||
};
|
};
|
||||||
if (this.tx) {
|
if (this.tx) {
|
||||||
data.tx =this.tx.serialize().toString('hex');
|
data.tx =this.tx.serialize().toString('hex');
|
||||||
|
@ -758,7 +756,7 @@ TransactionBuilder.fromObj = function(data) {
|
||||||
b.signhash = data.signhash;
|
b.signhash = data.signhash;
|
||||||
b.spendUnconfirmed = data.spendUnconfirmed;
|
b.spendUnconfirmed = data.spendUnconfirmed;
|
||||||
|
|
||||||
b.inputMap = data.inputMap;
|
b._setInputMap();
|
||||||
|
|
||||||
if (data.tx) {
|
if (data.tx) {
|
||||||
// Tx may have signatures, that are not on txobj
|
// Tx may have signatures, that are not on txobj
|
||||||
|
|
Loading…
Reference in New Issue