Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

New options for api nodes - 1.8 #8742

Merged
merged 10 commits into from
Mar 3, 2020
Merged

New options for api nodes - 1.8 #8742

merged 10 commits into from
Mar 3, 2020

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Mar 3, 2020

Change Description

  • --p2p-accept-transactions arg (=1) Allow transactions received over p2p
    network to be evaluated and relayed if valid.
  • --api-accept-transactions arg (=1) Allow API transactions to be evaluated
    and relayed if valid.
  • read-mode = irreversible now asserts unless:

    • p2p-accept-transactions = false
    • api-accept-transactions = false
  • Resolves Introduce new read-mode to nodeos: api-read-only #8685 by user specifying:

    • read-mode = head
    • p2p-accept-transactions = false
    • api-accept-transactions = true

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Updated Descriptions:

--read-mode arg (=speculative)

  • Database read mode ("speculative", "head", "read-only", "irreversible").
    In "speculative" mode: database
    contains state changes by transactions
    in the blockchain up to the head block
    as well as some transactions not yet
    included in the blockchain.

  • In "head" mode: database contains state
    changes by only transactions in the
    blockchain up to the head block;
    transactions received by the node are
    relayed if valid.

  • In "read-only" mode: (DEPRECATED: see
    p2p-accept-transactions &
    api-accept-transactions) database
    contains state changes by only
    transactions in the blockchain up to
    the head block; transactions received
    via the P2P network are not relayed and
    transactions cannot be pushed via the
    chain API.

  • In "irreversible" mode: database
    contains state changes by only
    transactions in the blockchain up to
    the last irreversible block;
    transactions received via the P2P
    network are not relayed and
    transactions cannot be pushed via the chain API.

New Options:

--p2p-accept-transactions arg (=1) Allow transactions received over p2p
network to be evaluated and relayed if valid.
--api-accept-transactions arg (=1) Allow API transactions to be evaluated
and relayed if valid.

@heifner heifner merged commit f23ed4e into release/1.8.x Mar 3, 2020
@heifner heifner deleted the api-read-only-1.8 branch March 3, 2020 16:33
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.

2 participants