remove inputMap from serialization

This commit is contained in:
Matias Alejo Garcia 2014-04-16 10:34:16 -03:00
parent 1a28683e4a
commit edfa6837a6
1 changed files with 1 additions and 3 deletions

View File

@ -732,8 +732,6 @@ TransactionBuilder.prototype.toObj = function() {
//opts :
signhash : this.signhash,
spendUnconfirmed : this.spendUnconfirmed,
inputMap : this.inputMap,
};
if (this.tx) {
data.tx =this.tx.serialize().toString('hex');
@ -758,7 +756,7 @@ TransactionBuilder.fromObj = function(data) {
b.signhash = data.signhash;
b.spendUnconfirmed = data.spendUnconfirmed;
b.inputMap = data.inputMap;
b._setInputMap();
if (data.tx) {
// Tx may have signatures, that are not on txobj