rename C.js constant.js

This commit is contained in:
aozhiwei 2022-04-13 15:54:10 +08:00
parent a0c785d8a0
commit 66b81a7e64
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const metamgr = require('./metamgr');
const utils = require('./utils');
const sync = require("./sync");
const log = require("./log");
const C = require("./C");
const constant = require("./constant");
class BlockChain {
@ -33,7 +33,7 @@ class BlockChain {
}
setTimeout(this.refreshBlockNumber.bind(this), 1000 * 0.01);
await this.mustBeActive();
utils.emitEvent(C.BC_INITIALIZED_EVENT);
utils.emitEvent(constant.BC_INITIALIZED_EVENT);
}
async mustBeActive() {