diff --git a/src/core/blocks.js b/src/core/blocks.js index 3c09dc3..3cbf8b2 100644 --- a/src/core/blocks.js +++ b/src/core/blocks.js @@ -698,12 +698,13 @@ Blocks.prototype.loadBlocksOffset = function (limit, offset, verify, cb) { Blocks.prototype.setLastBlock = function (block) { private.lastBlock = block if (global.Config.netVersion === 'mainnet') { - global.featureSwitch.enableUIA = global.featureSwitch.enableLongId = private.lastBlock.height >= 1700000 + global.featureSwitch.enableLongId = private.lastBlock.height >= 1700000 } else if (global.Config.netVersion === 'testnet') { global.featureSwitch.enableLongId = private.lastBlock.height >= 4000 } else { - global.featureSwitch.enableLongId = private.lastBlock.height >= 500 + global.featureSwitch.enableLongId = private.lastBlock.height >= 5 } + global.featureSwitch.enableUIA = global.featureSwitch.enableLongId } Blocks.prototype.getLastBlock = function () { diff --git a/test/lib/uia.js b/test/lib/uia.js index a952677..4836237 100644 --- a/test/lib/uia.js +++ b/test/lib/uia.js @@ -746,7 +746,7 @@ describe('Test UIA', () => { }) }) - describe.only('Test modify permission', () => { + describe('Test modify permission', () => { var ISSUE_ACCOUNT = node.genNormalAccount() var ISSUER_NAME = node.randomIssuerName() var ASSET_NAME = ISSUER_NAME + '.SILVER'