Make tests wait until lightwalletd full sync goes all the way to the tip #4894
Labels
A-rpc
Area: Remote Procedure Call interfaces
C-bug
Category: This is a bug
C-testing
Category: These are tests
lightwalletd
any work associated with lightwalletd
Motivation
lightwalletd doesn't reliably log when it reaches the chain tip.
In PR #4828, we added a workaround to the lightwalletd full sync test, which stops at a fixed height near the chain tip. But for tests like #4350, we need to wait until it has actually reached the tip.
Designs
Make the lightwalletd full sync, update sync, grpc, and send transaction tests wait until lightwalletd has reached the chain tip.
We could do this by checking that the Zebra JSON-RPC and lightwalletd gRPC heights match. (We can't do it using the logs, because
lightwalletd
doesn't reliably log block heights.)The
lightwalletd_integration_test()
already does most of this work, we might want to call it from the grpc and send transaction tests.The text was updated successfully, but these errors were encountered: