drop preload constants.
This commit is contained in:
parent
f3980ca029
commit
b98640b27e
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* fullchain.js - fullnode blockchain management for bcoin
|
* chain.js - blockchain management for bcoin
|
||||||
* Copyright (c) 2014-2015, Fedor Indutny (MIT License)
|
* Copyright (c) 2014-2015, Fedor Indutny (MIT License)
|
||||||
* https://github.com/indutny/bcoin
|
* https://github.com/indutny/bcoin
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -106,31 +106,6 @@ main.genesis = {
|
|||||||
|
|
||||||
main.magic = 0xd9b4bef9;
|
main.magic = 0xd9b4bef9;
|
||||||
|
|
||||||
main.preload = {
|
|
||||||
v: 2,
|
|
||||||
type: 'chain',
|
|
||||||
network: main.type,
|
|
||||||
entries: [
|
|
||||||
{
|
|
||||||
hash: main.genesis.hash,
|
|
||||||
version: main.genesis.version,
|
|
||||||
prevBlock: main.genesis.prevBlock,
|
|
||||||
ts: main.genesis.ts,
|
|
||||||
bits: main.genesis.bits,
|
|
||||||
height: 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
main._preload = require('./preload');
|
|
||||||
utils.assert(main._preload.entries[0]);
|
|
||||||
main.preload = main._preload;
|
|
||||||
delete main._preload;
|
|
||||||
} catch (e) {
|
|
||||||
delete main._preload;
|
|
||||||
}
|
|
||||||
|
|
||||||
main.powLimit = new bn(
|
main.powLimit = new bn(
|
||||||
'00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
|
'00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
|
||||||
'hex'
|
'hex'
|
||||||
@ -220,31 +195,6 @@ testnet.genesis = {
|
|||||||
|
|
||||||
testnet.magic = 0x0709110b;
|
testnet.magic = 0x0709110b;
|
||||||
|
|
||||||
testnet.preload = {
|
|
||||||
v: 2,
|
|
||||||
type: 'chain',
|
|
||||||
network: testnet.type,
|
|
||||||
entries: [
|
|
||||||
{
|
|
||||||
hash: testnet.genesis.hash,
|
|
||||||
version: testnet.genesis.version,
|
|
||||||
prevBlock: testnet.genesis.prevBlock,
|
|
||||||
ts: testnet.genesis.ts,
|
|
||||||
bits: testnet.genesis.bits,
|
|
||||||
height: 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
testnet._preload = require('./preload-test');
|
|
||||||
utils.assert(testnet._preload.entries[0]);
|
|
||||||
testnet.preload = testnet._preload;
|
|
||||||
delete testnet._preload;
|
|
||||||
} catch (e) {
|
|
||||||
delete testnet._preload;
|
|
||||||
}
|
|
||||||
|
|
||||||
testnet.powLimit = new bn(
|
testnet.powLimit = new bn(
|
||||||
'00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
|
'00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
|
||||||
'hex'
|
'hex'
|
||||||
@ -316,31 +266,6 @@ regtest.genesis = {
|
|||||||
|
|
||||||
regtest.magic = 0xdab5bffa;
|
regtest.magic = 0xdab5bffa;
|
||||||
|
|
||||||
regtest.preload = {
|
|
||||||
v: 2,
|
|
||||||
type: 'chain',
|
|
||||||
network: regtest.type,
|
|
||||||
entries: [
|
|
||||||
{
|
|
||||||
hash: regtest.genesis.hash,
|
|
||||||
version: regtest.genesis.version,
|
|
||||||
prevBlock: regtest.genesis.prevBlock,
|
|
||||||
ts: regtest.genesis.ts,
|
|
||||||
bits: regtest.genesis.bits,
|
|
||||||
height: 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
regtest._preload = require('./preload-regtest');
|
|
||||||
utils.assert(regtest._preload.entries[0]);
|
|
||||||
regtest.preload = regtest._preload;
|
|
||||||
delete regtest._preload;
|
|
||||||
} catch (e) {
|
|
||||||
delete regtest._preload;
|
|
||||||
}
|
|
||||||
|
|
||||||
regtest.powLimit = new bn(
|
regtest.powLimit = new bn(
|
||||||
'7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
|
'7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
|
||||||
'hex'
|
'hex'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user