getAllOffers method

Future<void> getAllOffers()

Fetches all offers from the Haveno network.

This method first calls getPeerOffers to fetch offers from other peers, then waits for 2 seconds before calling getMyOffers to fetch the user's own offers.

Throws a DaemonNotConnectedException if the client is not connected to the daemon.

Implementation

Future<void> getAllOffers() async {
  if (!havenoChannel.isConnected) {
    throw DaemonNotConnectedException();
  }
  await getPeerOffers();
  await Future.delayed(const Duration(seconds: 2));
  await getMyOffers();
}