3.0.2 • Published 2 years ago

@rei-network/core v3.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
2 years ago

@rei-network/core

NPM Version License

The core logic of blockchain node, including:

  • BlockchainMonitor: Contains several events

    • logs: Emit when a new transaction's log is generated
    • removedLogs: Emit when the transaction has been rolled back
    • newHeads: Emit when canonical chain changes
  • Indexer and BloomBitsFilter: Create bloom bits index for section

  • Consensus: Consensus engine implement
  • Protocols: P2P protocols, include rei-ethwire and rei-consensus
  • Txpool: Manage pending and queued transactions
  • Sync : Synchronize blocks
  • TxSync: Synchronize transactions
  • Tracer: Tracer provides an implementation of tracing blocks or transactions
  • Contracts: Some classes are used to interact with the smart contract
  • Validation: Contains the logic to verify the block
  • Hardforks: Contains logic related to the hard fork

INSTALL

npm install @rei-network/core

USAGE

const node = await NodeFactory.createNode({
  databasePath: "path/to/dataDir",
  chain: "chainName",
  mine: {
    enable: true,
    coinbase: "address1",
  },
  network: {
    enable: true,
  },
  account: {
    keyStorePath: "path/to/keystore",
    unlock: [
      ["address1", "passphrase1"],
      ["address2", "passphrase2"],
    ],
  },
});

await node.abort();

License

GNU General Public License v3.0

3.0.1-beta.2

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.4-testnet.3

3 years ago

0.0.7

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4-testnet.2

4 years ago

0.0.4-testnet.1

4 years ago

0.0.4

4 years ago