# Changelog ## 0.8.3 ### Breaking Change to JSON RPC-API From v0.8.3, incoming HTTP requests are only accepted from hostnames specified using the `--host-whitelist` command-line option. If not specified, the default value for `--host-whitelist` is `localhost`. If using the URL `http://127.0.0.1` to make JSON-RPC calls, use `--host-whitelist` to specify the hostname `127.0.0.1` or update the hostname to `localhost`. If your application publishes RPC ports, specify the hostnames when starting Pantheon. For example: ```json pantheon --host-whitelist=example.com ``` Specify `*` or `all` for `--host-whitelist` to effectively disable host protection and replicate pre-v0.8.3 behavior. This is not recommended for production code. ### Bug Fixes - Repair Clique Proposer Selection [\#339](https://github.com/PegaSysEng/pantheon/pull/339) - High TX volume swamps block processing [\#337](https://github.com/PegaSysEng/pantheon/pull/337) - Check if the connectFuture has completed successfully [\#293](https://github.com/PegaSysEng/pantheon/pull/293) - Switch back to Xerial Snappy Library [\#284](https://github.com/PegaSysEng/pantheon/pull/284) - ShortHex of 0 should be '0x0', not '0x' [\#272](https://github.com/PegaSysEng/pantheon/pull/272) - Fix pantheon CLI default values infinite loop [\#266](https://github.com/PegaSysEng/pantheon/pull/266) ### Additions and Improvements - Added `--nodes-whitelist` parameter to CLI and NodeWhitelistController [\#346](https://github.com/PegaSysEng/pantheon/pull/346) - Discovery wiring for `--node-whitelist` [\#365](https://github.com/PegaSysEng/pantheon/pull/365) - Plumb in three more metrics [\#344](https://github.com/PegaSysEng/pantheon/pull/344) - `ProposerSelection` to support multiple IBFT implementations [\#307](https://github.com/PegaSysEng/pantheon/pull/307) - Configuration to support IBFT original and revised [\#306](https://github.com/PegaSysEng/pantheon/pull/306) - Added host whitelist for JSON-RPC. [**Breaking Change**](#breaking-change-to-json-rpc-api) [\#295](https://github.com/PegaSysEng/pantheon/pull/295) - Reduce `Block creation processed cancelled` log message to debug [\#294](https://github.com/PegaSysEng/pantheon/pull/294) - Implement iterative peer search [\#268](https://github.com/PegaSysEng/pantheon/pull/268) - Added RLP enc/dec for PrePrepare, Commit and NewRound messages [\#200](https://github.com/PegaSysEng/pantheon/pull/200) - IBFT block mining [\#169](https://github.com/PegaSysEng/pantheon/pull/169) - Added `--goerli` CLI option [\#370](https://github.com/PegaSysEng/pantheon/pull/370) (Thanks to [@Nashatyrev](https://github.com/Nashatyrev)) - Begin capturing metrics to better understand Pantheon's behaviour [\#326](https://github.com/PegaSysEng/pantheon/pull/326) - Documentation updates include: * Added Coding Conventions [\#342](https://github.com/PegaSysEng/pantheon/pull/342) * Reorganised [Installation documentation](https://github.com/PegaSysEng/pantheon/wiki/Installation) and added [Chocolatey installation](https://github.com/PegaSysEng/pantheon/wiki/Install-Binaries#windows-with-chocolatey) for Windows * Reorganised [JSON-RPC API documentation](https://github.com/PegaSysEng/pantheon/wiki/JSON-RPC-API) * Updated [RPC Pub/Sub API documentation](https://github.com/PegaSysEng/pantheon/wiki/RPC-PubSub) ### Technical Improvements - Extracted non-Docker CLI parameters to picoCLI mixin. [\#323](https://github.com/PegaSysEng/pantheon/pull/323) - IBFT preprepare to validate round matches block [\#329](https://github.com/PegaSysEng/pantheon/pull/329) - Fix acceptance test [\#324](https://github.com/PegaSysEng/pantheon/pull/324) - Added the `IbftFinalState` [\#385](https://github.com/PegaSysEng/pantheon/pull/385) - Constantinople Fork Block [\#382](https://github.com/PegaSysEng/pantheon/pull/382) - Fix `pantheon.cli.PantheonCommandTest` test on Windows [\#380](https://github.com/PegaSysEng/pantheon/pull/380) - JDK smoke testing is being configured differently now [\#374](https://github.com/PegaSysEng/pantheon/pull/374) - Re-enable clique AT [\#373](https://github.com/PegaSysEng/pantheon/pull/373) - Ignoring acceptance test [\#372](https://github.com/PegaSysEng/pantheon/pull/372) - Changes to support Gradle 5.0 [\#371](https://github.com/PegaSysEng/pantheon/pull/371) - Clique: Prevent out of turn blocks interrupt in-turn mining [\#364](https://github.com/PegaSysEng/pantheon/pull/364) - Time all tasks [\#361](https://github.com/PegaSysEng/pantheon/pull/361) - Rework `VoteTallyCache` to better represent purpose [\#360](https://github.com/PegaSysEng/pantheon/pull/360) - Add an `UNKNOWN` `DisconnectReason` [\#359](https://github.com/PegaSysEng/pantheon/pull/359) - New round validation [\#353](https://github.com/PegaSysEng/pantheon/pull/353) - Update get validators for block hash test to start from block 1 [\#352](https://github.com/PegaSysEng/pantheon/pull/352) - Idiomatic Builder Pattern [\#345](https://github.com/PegaSysEng/pantheon/pull/345) - Revert `Repair Clique Proposer Selection` \#339 - Breaks Görli testnet [\#343](https://github.com/PegaSysEng/pantheon/pull/343) - No fixed ports in tests [\#340](https://github.com/PegaSysEng/pantheon/pull/340) - Update clique acceptance test genesis file to use correct clique property names [\#338](https://github.com/PegaSysEng/pantheon/pull/338) - Supporting list of addresses in logs subscription [\#336](https://github.com/PegaSysEng/pantheon/pull/336) - Render handler exception to `System.err` instead of `.out` [\#334](https://github.com/PegaSysEng/pantheon/pull/334) - Renamed IBFT message classes [\#333](https://github.com/PegaSysEng/pantheon/pull/333) - Add additional RLP tests [\#332](https://github.com/PegaSysEng/pantheon/pull/332) - Downgrading spotless to 3.13.0 to fix threading issues [\#325](https://github.com/PegaSysEng/pantheon/pull/325) - `eth_getTransactionReceipt` acceptance test [\#322](https://github.com/PegaSysEng/pantheon/pull/322) - Upgrade vertx to 3.5.4 [\#316](https://github.com/PegaSysEng/pantheon/pull/316) - Round change validation [\#315](https://github.com/PegaSysEng/pantheon/pull/315) - Basic IBFT message validators [\#314](https://github.com/PegaSysEng/pantheon/pull/314) - Minor repairs to clique block scheduling [\#308](https://github.com/PegaSysEng/pantheon/pull/308) - Dependencies Version upgrade [\#303](https://github.com/PegaSysEng/pantheon/pull/303) - Build multiple JVM [\#301](https://github.com/PegaSysEng/pantheon/pull/301) - Smart contract acceptance test [\#296](https://github.com/PegaSysEng/pantheon/pull/296) - Fixing WebSocket error response [\#292](https://github.com/PegaSysEng/pantheon/pull/292) - Reword error messages following exceptions during mining [\#291](https://github.com/PegaSysEng/pantheon/pull/291) - Clique acceptance tests [\#290](https://github.com/PegaSysEng/pantheon/pull/290) - Delegate creation of additional JSON-RPC methods to the PantheonController [\#289](https://github.com/PegaSysEng/pantheon/pull/289) - Remove unnecessary `RlpInput` and `RlpOutput` classes [\#287](https://github.com/PegaSysEng/pantheon/pull/287) - Remove `RlpUtils` [\#285](https://github.com/PegaSysEng/pantheon/pull/285) - Enabling previously ignored acceptance tests [\#282](https://github.com/PegaSysEng/pantheon/pull/282) - IPv6 peers [\#281](https://github.com/PegaSysEng/pantheon/pull/281) - IPv6 Bootnode [\#280](https://github.com/PegaSysEng/pantheon/pull/280) - Acceptance test for `getTransactionReceipt` JSON-RPC method [\#278](https://github.com/PegaSysEng/pantheon/pull/278) - Inject `StorageProvider` into `PantheonController` instances [\#259](https://github.com/PegaSysEng/pantheon/pull/259) ## 0.8.2 ### Removed - Removed `import-blockchain` command because nothing exports to the required format yet (PR [\#223](https://github.com/PegaSysEng/pantheon/pull/223)) ### Bug Fixes - `io.netty.util.internal.OutOfDirectMemoryError` errors by removing reference counting from network messages. - Log spam: endless loop in `nioEventLoopGroup` ([#248](https://github.com/PegaSysEng/pantheon/issues/248) thanks to [@5chdn](https://github.com/5chdn) for reporting) (PR [#261](https://github.com/PegaSysEng/pantheon/pull/261)) - Rinkeby import can stall with too many fragments ([#228](https://github.com/PegaSysEng/pantheon/issues/228) thanks to [@steffenkux](https://github.com/steffenkux) and [@5chdn](https://github.com/5chdn) for reporting) (PR [#255](https://github.com/PegaSysEng/pantheon/pull/255)) - Clique incorrectly used the chain ID instead of the network ID in ETH status messages (PR [#209](https://github.com/PegaSysEng/pantheon/pull/209)) - Gradle deprecation warnings (PR [#246](https://github.com/PegaSysEng/pantheon/pull/246) with thanks to [@jvirtanen](https://github.com/jvirtanen)) - Consensus issue on Ropsten: - Treat output length as a maximum length for CALL operations (PR [#236](https://github.com/PegaSysEng/pantheon/pull/236)) - ECRec precompile should return empty instead of 32 zero bytes when the input is invalid (PR [#227](https://github.com/PegaSysEng/pantheon/pull/227)) - File name too long error while building from source ([#215](https://github.com/PegaSysEng/pantheon/issues/215) thanks to [@5chdn](https://github.com/5chdn) for reporting) (PR [#221](https://github.com/PegaSysEng/pantheon/pull/221)) - Loop syntax in `runPantheonPrivateNetwork.sh` (PR [#237](https://github.com/PegaSysEng/pantheon/pull/237) thanks to [@matt9ucci](https://github.com/matt9ucci)) - Fix `CompressionException: Snappy decompression failed` errors ([#251](https://github.com/PegaSysEng/pantheon/issues/251) thanks to [@5chdn](https://github.com/5chdn) for reporting) (PR [#274](https://github.com/PegaSysEng/pantheon/pull/274)) ### Additions and Improvements - Added `--ropsten` command line argument to make syncing to Ropsten easier ([#186](https://github.com/PegaSysEng/pantheon/issues/186)) (PR [#197](https://github.com/PegaSysEng/pantheon/pull/197) with thanks to [@jvirtanen](https://github.com/jvirtanen)) - Enabled constantinople in `--dev-mode` (PR [#256](https://github.com/PegaSysEng/pantheon/pull/256)) - Supported Constantinople with Clique ([#245](https://github.com/PegaSysEng/pantheon/issues/245) thanks to [@5chdn](https://github.com/5chdn) for reporting) (PR [#250](https://github.com/PegaSysEng/pantheon/pull/250), PR [#247](https://github.com/PegaSysEng/pantheon/pull/247)) - Implemented `eth_chainId` JSON-RPC method ([#206](https://github.com/PegaSysEng/pantheon/issues/206)) (PR [#219](https://github.com/PegaSysEng/pantheon/pull/219)) - Updated client version to be ethstats friendly (PR [#258](https://github.com/PegaSysEng/pantheon/pull/258)) - Added `--node-private-key` option to allow nodekey file to be specified separately to data directory ([#233](https://github.com/PegaSysEng/pantheon/issues/233) thanks to [@peterbroadhurst](https://github.com/peterbroadhurst) for requesting) (PR [#234](https://github.com/PegaSysEng/pantheon/pull/234)) - Added `--banned-nodeids` option to prevent connection to specific nodes (PR [#254](https://github.com/PegaSysEng/pantheon/pull/254)) - Send client quitting disconnect message to peers on shutdown ([#184](https://github.com/PegaSysEng/pantheon/issues/184)) (PR [#253](https://github.com/PegaSysEng/pantheon/pull/253)) - Improved error message for port conflict error (PR [#232](https://github.com/PegaSysEng/pantheon/pull/232)) - Improved documentation by adding the following pages: * [Getting Started](https://github.com/PegaSysEng/pantheon/wiki/Getting-Started) * [Network ID and Chain ID](https://github.com/PegaSysEng/pantheon/wiki/NetworkID-And-ChainID) * [Node Keys](https://github.com/PegaSysEng/pantheon/wiki/Node-Keys) * [Networking](https://github.com/PegaSysEng/pantheon/wiki/Networking) * [Accounts for Testing](https://github.com/PegaSysEng/pantheon/wiki/Accounts-for-Testing) * [Logging](https://github.com/PegaSysEng/pantheon/wiki/Logging) * [Proof of Authority](https://github.com/PegaSysEng/pantheon/wiki/Proof-of-Authority) * [Passing JVM Options](https://github.com/PegaSysEng/pantheon/wiki/Passing-JVM-Options) ### Technical Improvements - Upgraded Ethereum reference tests to 6.0 beta 2. (thanks to [@jvirtanen](https://github.com/jvirtanen) for the initial upgrade to beta 1) - Set Java compiler default encoding to UTF-8 (PR [#238](https://github.com/PegaSysEng/pantheon/pull/238) thanks to [@matt9ucci](https://github.com/matt9ucci)) - Removed duplicate code defining default JSON-RPC APIs (PR [#218](https://github.com/PegaSysEng/pantheon/pull/218) thanks to [@matt9ucci](https://github.com/matt9ucci)) - Improved code for parsing config (PRs [#208](https://github.com/PegaSysEng/pantheon/pull/208), [#209](https://github.com/PegaSysEng/pantheon/pull/209)) - Use `java.time.Clock` in favour of a custom Clock interface (PR [#220](https://github.com/PegaSysEng/pantheon/pull/220)) - Improve modularity of storage systems (PR [#211](https://github.com/PegaSysEng/pantheon/pull/211), [#207](https://github.com/PegaSysEng/pantheon/pull/207)) - Treat JavaDoc warnings as errors (PR [#171](https://github.com/PegaSysEng/pantheon/pull/171)) - Add benchmark for `BlockHashOperation `as a template for benchmarking other EVM operations (PR [#203](https://github.com/PegaSysEng/pantheon/pull/203)) - Added unit tests for `EthBlockNumber` ([#189](https://github.com/PegaSysEng/pantheon/issues/189)) (PR [#195](https://github.com/PegaSysEng/pantheon/pull/195) thanks to [@jvirtanen](https://github.com/jvirtanen)) - Code style improvements (PR [#196](https://github.com/PegaSysEng/pantheon/pull/196) thanks to [@jvirtanen](https://github.com/jvirtanen)) - Added unit tests for `Web3ClientVersion` ([#191](https://github.com/PegaSysEng/pantheon/issues/191)) (PR [#194](https://github.com/PegaSysEng/pantheon/pull/194) with thanks to [@jvirtanen](https://github.com/jvirtanen)) - Removed RLPUtils from `RawBlockIterator` (PR [#179](https://github.com/PegaSysEng/pantheon/pull/179)) - Replace the JNI based snappy library with a pure-Java version (PR [#257](https://github.com/PegaSysEng/pantheon/pull/257))