[SDK] Improve REST JSON streaming (#374)

* Fixes

* GetEventStream REST rework

* fix round phases time intervals

* [SDK] Use server-side streams in rest client

* Fix history

* Fix

* Drop data in ping response

* Polish

---------

Co-authored-by: louisinger <louis@vulpem.com>
This commit is contained in:
Pietralberto Mazza
2024-11-11 15:43:57 +01:00
committed by GitHub
parent 11b23e15c4
commit cd502f3dac
21 changed files with 427 additions and 914 deletions

View File

@@ -27,7 +27,7 @@ func TestVtxosToTxs(t *testing.T) {
for _, tt := range fixtures {
t.Run(tt.name, func(t *testing.T) {
txHistory, err := vtxosToTxsCovenantless(tt.spendableVtxos, tt.spentVtxos)
txHistory, err := vtxosToTxsCovenantless(tt.spendableVtxos, tt.spentVtxos, tt.ignoreTxs)
require.NoError(t, err)
require.Len(t, txHistory, len(tt.expectedTxHistory))