less strict import check for TXP v0

This commit is contained in:
Matias Alejo Garcia 2014-07-25 11:13:48 -03:00
parent ae08d5611a
commit 7f11793b96
2 changed files with 8 additions and 6 deletions

View File

@ -45,7 +45,8 @@ TxProposal.fromObj = function(o) {
try {
t.builder = new Builder.fromObj(o.builderObj);
} catch (e) {
console.log('Ignoring incompatible stored TxProposal:' + JSON.stringify(o.builderObj));
if (!process.version)
console.log('Ignoring incompatible stored TxProposal:' + JSON.stringify(o.builderObj));
}
return t;
};

File diff suppressed because one or more lines are too long