mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 04:35:49 +00:00
Merge tepPARTIAL into tecCLAIMED.
This commit is contained in:
committed by
Stefan Thomas
parent
e5c6acde7d
commit
d38fd1847d
@@ -1162,7 +1162,7 @@ Remote.prototype.transaction = function () {
|
|||||||
// |/
|
// |/
|
||||||
// |- 'tesSUCCESS' - Transaction in ledger as expected.
|
// |- 'tesSUCCESS' - Transaction in ledger as expected.
|
||||||
// |- 'ter...' - Transaction failed.
|
// |- 'ter...' - Transaction failed.
|
||||||
// \- 'tep...' - Transaction partially succeeded.
|
// \- 'tec...' - Transaction claimed fee only.
|
||||||
//
|
//
|
||||||
// Notes:
|
// Notes:
|
||||||
// - All transactions including those with local and malformed errors may be
|
// - All transactions including those with local and malformed errors may be
|
||||||
@@ -1225,7 +1225,7 @@ Transaction.prototype.consts = {
|
|||||||
'tefFAILURE' : -199,
|
'tefFAILURE' : -199,
|
||||||
'terRETRY' : -99,
|
'terRETRY' : -99,
|
||||||
'tesSUCCESS' : 0,
|
'tesSUCCESS' : 0,
|
||||||
'tepPARTIAL' : 100,
|
'tecCLAIMED' : 100,
|
||||||
};
|
};
|
||||||
|
|
||||||
Transaction.prototype.isTelLocal = function (ter) {
|
Transaction.prototype.isTelLocal = function (ter) {
|
||||||
@@ -1248,8 +1248,8 @@ Transaction.prototype.isTepSuccess = function (ter) {
|
|||||||
return ter >= this.consts.tesSUCCESS;
|
return ter >= this.consts.tesSUCCESS;
|
||||||
};
|
};
|
||||||
|
|
||||||
Transaction.prototype.isTepPartial = function (ter) {
|
Transaction.prototype.isTecClaimed = function (ter) {
|
||||||
return ter >= this.consts.tepPATH_PARTIAL;
|
return ter >= this.consts.tecCLAIMED;
|
||||||
};
|
};
|
||||||
|
|
||||||
Transaction.prototype.isRejected = function (ter) {
|
Transaction.prototype.isRejected = function (ter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user