Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sqfasd committed Mar 1, 2017
1 parent de735f9 commit 9578f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/core/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/lib/uia.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9578f35

Please sign in to comment.