neoneo-go/pkg/consensus
Roman Khimov eb11e5fb11 core: implement basic policying support, fix #370
Implement mempool and consensus block creation policies, almost the same as
SimplePolicy plugin for C# node provides with two caveats:
 * HighPriorityTxType is not configured and hardcoded to ClaimType
 * BlockedAccounts are not supported

Other than that it allows us to run successfuly as testnet CN, previously our
proposals were rejected because we were proposing blocks with oversized
transactions (that are rejected by PoolTx() now).

Mainnet and testnet configuration files are updated accordingly, but privnet
is left as is with no limits.

Configuration is currently attached to the Blockchain and so is the code that
does policying, it may be moved somewhere in the future, but it works for
now.
2020-02-19 12:19:02 +03:00
..
testdata consensus: use wallet in service 2020-01-17 17:25:51 +03:00
block.go block: rename BlockBase to Base 2020-01-16 10:16:24 +03:00
block_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
cache.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
cache_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
change_view.go io: add type-specific read/write methods 2019-12-12 20:19:50 +03:00
change_view_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
commit.go io: implement ReadBytes() 2019-12-09 15:00:15 +03:00
commit_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
consensus.go core: implement basic policying support, fix #370 2020-02-19 12:19:02 +03:00
consensus_test.go core: make IsLowPriority work with pre-calculated fee 2020-02-19 12:19:02 +03:00
crypto.go keys: don't return error from PrivateKey.Sign 2020-01-17 17:00:30 +03:00
crypto_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
payload.go consensus: handle encoding errors in Hash() 2020-02-03 16:33:03 +03:00
payload_test.go consensus: provide message type and view inside RecoveryMessage 2020-02-18 15:25:29 +03:00
prepare_request.go io: add type-specific read/write methods 2019-12-12 20:19:50 +03:00
prepare_request_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
prepare_response.go io: implement ReadBytes() 2019-12-09 15:00:15 +03:00
prepare_response_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
recovery_message.go consensus: provide message type and view inside RecoveryMessage 2020-02-18 15:25:29 +03:00
recovery_message_test.go consensus: provide message type and view inside RecoveryMessage 2020-02-18 15:25:29 +03:00
recovery_request.go io: add type-specific read/write methods 2019-12-12 20:19:50 +03:00
recovery_request_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00