Added new endpoint send_read_only transaction, and added configuration for testing on Jungle vs Local host.
New endpoint send_read_only_transaction with unit and integration tests
include simple contract for readonly testing, needed something that would not modify state
transact logic updated to ensure options are compatible (e.g. no signature for read_only)
Code changes so testing would work on fast single producers
updated logic for transaction header to look for reference_block at head with no delay
added wait times for transaction retry to prevent duplicate transactions in same block
Configuration with setting for local hosts and jungle. One line change in test-node file
Updated error handling to show all error messages, previous just one error message
Listing of Commits
GIT LOGS
4eda42f rm read-only specific test
f36bc7e log multiple messages from rpc error
f3bece0 correct action for send_read_only_trx
7b4ee00 removed sig for read_only_trans; added pauses for localhost testing
12c0290 added readonly option to transact
3613377 Merge remote-tracking branch 'origin/rp/GH-52-send-readonly-transaction' into ehp/test-leap-4.0
bf2bbeb added new testing path for local host
2856d54 GH-52 | Send readonly transaction, part 1. | [Ray]
Change
Added new endpoint send_read_only transaction, and added configuration for testing on Jungle vs Local host.
send_read_only_transaction
with unit and integration testsListing of Commits
GIT LOGS 4eda42f rm read-only specific test f36bc7e log multiple messages from rpc error f3bece0 correct action for send_read_only_trx 7b4ee00 removed sig for read_only_trans; added pauses for localhost testing 12c0290 added readonly option to transact 3613377 Merge remote-tracking branch 'origin/rp/GH-52-send-readonly-transaction' into ehp/test-leap-4.0 bf2bbeb added new testing path for local host 2856d54 GH-52 | Send readonly transaction, part 1. | [Ray]
Listing of Files Changed
docs/Testing ReadOnly.md package-lock.json package.json src/eosjs-api.ts src/eosjs-jsonrpc.ts src/eosjs-rpcerror.ts src/tests/TestConfig.ts src/tests/eosjs-jsonrpc.test.ts src/tests/node.js src/tests/node.test.ts src/tests/readonly_contract/contract.cpp src/tests/readonly_contract/include/contract.hpp
API Changes
Support for
/v1/chain/send_read_only_transaction
Documentation Additions
Small Docs addition on added new contract for read only testing