@leofcoin/lib 1.2.29 → 1.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/exports/node-config.js +9 -9
- package/package.json +1 -1
package/exports/node-config.js
CHANGED
|
@@ -5,19 +5,19 @@ var nodeConfig = async (config = {
|
|
|
5
5
|
networkName: 'leofcoin:peach',
|
|
6
6
|
networkVersion: 'v1.0.0'
|
|
7
7
|
}) => {
|
|
8
|
-
await
|
|
9
|
-
await
|
|
10
|
-
await
|
|
11
|
-
await
|
|
12
|
-
await
|
|
13
|
-
await
|
|
8
|
+
await peernet.addProto('contract-message', ContractMessage);
|
|
9
|
+
await peernet.addProto('transaction-message', TransactionMessage);
|
|
10
|
+
await peernet.addProto('block-message', BlockMessage);
|
|
11
|
+
await peernet.addProto('bw-message', BWMessage);
|
|
12
|
+
await peernet.addProto('bw-request-message', BWRequestMessage);
|
|
13
|
+
await peernet.addProto('validator-message', ValidatorMessage);
|
|
14
14
|
let name = `.${config.network}`;
|
|
15
15
|
const parts = config.network.split(':');
|
|
16
16
|
if (parts[1])
|
|
17
17
|
name = `.${parts[0]}/${parts[1]}`;
|
|
18
|
-
await
|
|
19
|
-
await
|
|
20
|
-
await
|
|
18
|
+
await peernet.addStore('contract', 'lfc', name, false);
|
|
19
|
+
await peernet.addStore('accounts', 'lfc', name, false);
|
|
20
|
+
await peernet.addStore('transactionPool', 'lfc', name, false);
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export { nodeConfig as default };
|