File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
server/internal/core/application Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1917,7 +1917,9 @@ func (s *covenantlessService) getNewVtxos(round *domain.Round) []domain.Vtxo {
1917
1917
return nil
1918
1918
}
1919
1919
1920
- createdAt := time .Now ().Unix ()
1920
+ now := time .Now ()
1921
+ createdAt := now .Unix ()
1922
+ expireAt := now .Add (time .Duration (s .vtxoTreeExpiry .Seconds ()) * time .Second ).Unix ()
1921
1923
1922
1924
leaves := round .VtxoTree .Leaves ()
1923
1925
vtxos := make ([]domain.Vtxo , 0 )
@@ -1941,7 +1943,7 @@ func (s *covenantlessService) getNewVtxos(round *domain.Round) []domain.Vtxo {
1941
1943
Amount : uint64 (out .Value ),
1942
1944
RoundTxid : round .Txid ,
1943
1945
CreatedAt : createdAt ,
1944
- ExpireAt : createdAt + s . vtxoTreeExpiry . Seconds () ,
1946
+ ExpireAt : expireAt ,
1945
1947
})
1946
1948
}
1947
1949
}
You can’t perform that action at this time.
0 commit comments