Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Last updation #1

Open
wants to merge 295 commits into
base: master
Choose a base branch
from
Open

Last updation #1

wants to merge 295 commits into from

Conversation

nedobylskiy
Copy link

No description provided.

…Izzzio/iz3node

# Conflicts:
#	api/node/NodeRPC.js
#	api/node/demo/demo.js
Merge branches 'Terminal-for-RPC' and 'master' of https://github.com/…
Support for terminal connection string
Node.js auto release packager
Remove build.sh
nedobylskiy and others added 30 commits March 25, 2020 16:56
- Plugins can subscribe for new blocks in blockchain by providing callbacks without arguments
- Plugins can unsubscribe from new blocks by providing callback used for subscription
- Plugins can add block to blockchain from external source

Changes in Blockchain.js:
- Added decorator for function addBlockToChainIndex so new block subscribers can be called
- Blockchain.js:
  - _addBlockToChainIndex -> moved to addBlockToChainIndex
  - handleBlockchainResponse -> added argument preProcessedBlocks for already
processed blocks

- plugins.js:
  - _addBlocksToBlockchain -> now uses two parameters:
    rawBlocks -> will be lately processed by JSON.parse()
    preProcessedBlocks -> previously parsed blocks
- _addBlocksToBlockchain -> plugins can no longer add blocks as raw JSON
added blocks must be pre processed by plugin
Consensus hotfixes
Fixes issues with new block validation. Also updates benchmark configs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants