Raxol.Payments.Relay.Broadcaster.InMemory (Raxol Payments v0.2.0)

Copy Markdown View Source

Deterministic in-memory Raxol.Payments.Relay.Broadcaster for tests.

Records each broadcast in the process dictionary (keyed by transfer_id, so a retry returns the same hash) and returns a synthetic tx hash. Set :relay_broadcaster_fail in the process dictionary to make it return an error.

Summary

Functions

All broadcasts recorded this process, newest last.

Functions

sent()

@spec sent() :: [map()]

All broadcasts recorded this process, newest last.