You can send transactions while Sia is syncing, and they don't go through
BUG REPORT
I initially created this issue on the /Sia-UI repo, but am copying it here as well at the request of @MSevey. His comments in Discord regarding this: "The UI should just check if sync and block that function, an easy fix for @eddiewang but even if the UI is allowing the API call it sounds like Sia should be returning an error that we are not sync"
Initial Observations
Sia-UI will allow you to send transactions after you launch it, and before it is fully synced. If you do this, it appears that the first will go through once the blockchain syncs, but any others will not post.
Btc#1525 on Discord observed identical behavior.
A transaction for 10 SC while Sia is syncing.
A transaction for 20 SC while Sia is syncing.
Sia is synced, and only the first transaction posted.
Expected Behavior
We should disallow transactions while Sia/Sia-UI is syncing.
How to reproduce
Turn Sia off and let it lag a bunch of blocks, so it has a bunch to sync when it re-opens.
Reopen Sia.
Send multiple small test transactions.
Observe only the first will go through.
Environment
- Sia-UI version: 1.4.1 RC2 76d8bca1
- OS: 10.14.5 (18F132)