Merge pull request #258 from matiu/bug/transactionBuilderSerialization

remove inputMap from serialization
This commit is contained in:
Ryan X. Charles 2014-04-16 12:35:19 -03:00
commit 382730b6f1
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