-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Conversation
This could use a better name. I don't see how the api's are read-only in this mode. |
…trange mode and difficult to document
@swatanabe-b1 point well taken, we decided on |
We have discussed this some more and have decided that The new api mode will be provided by specifying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes just to prevent accidental merging. For details see: #8702 (comment)
…iptions of read-mode. Deprecated read-mode=read-only. Remove read-mode=api.
Change Description
network to be evaluated and relayed if valid.
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
API Changes
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.