Page MenuHomePhabricator

[avalanche] Let isfinaltransaction raise an error when the transaction is not found
ClosedPublic

Authored by Fabien on Sep 17 2022, 07:49.

Details

Summary

This makes it easier to guide the user through the reason why the transaction is marked as non final, and hints on how to let the node find the transaction. The error messages are shamelessly copied from getrawtransaction which has the same behavior.

Depends on D12002.

Test Plan
./test/functional/test_runner.py abc_rpc_isfinal

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Sep 17 2022, 07:49

Add a deprecatedrpc option for better compatibility with 0.26.1

This revision is now accepted and ready to land.Sep 19 2022, 17:58
Fabien planned changes to this revision.Sep 19 2022, 18:04

Raise an error when the quorum is not ready

This revision is now accepted and ready to land.Sep 19 2022, 19:28
sdulfari requested changes to this revision.Sep 19 2022, 20:08
sdulfari added inline comments.
test/functional/rpc_deprecated.py
82 ↗(On Diff #35009)

cleanup?

This revision now requires changes to proceed.Sep 19 2022, 20:08
test/functional/rpc_deprecated.py
82 ↗(On Diff #35009)

woups, good catch

Rebase, cleanup debug prints

This revision is now accepted and ready to land.Sep 20 2022, 16:36