From b5aaa99bf136c5154618a9017c2031f92de263c6 Mon Sep 17 00:00:00 2001 From: Jon Pollock Date: Fri, 2 Feb 2024 11:00:12 -0800 Subject: [PATCH] Add proper timestamp to simulateSubmitTransaction. --- routes/transaction.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/transaction.go b/routes/transaction.go index 7a319fc8..4cc2479a 100644 --- a/routes/transaction.go +++ b/routes/transaction.go @@ -4137,11 +4137,13 @@ func (fes *APIServer) GetTransactionSpending(ww http.ResponseWriter, req *http.R func (fes *APIServer) simulateSubmitTransaction(utxoView *lib.UtxoView, txn *lib.MsgDeSoTxn) (_utxoOperations []*lib.UtxoOperation, _totalInput uint64, _totalOutput uint64, _fees uint64, _err error) { bestHeight := fes.blockchain.BlockTip().Height + 1 + bytes, _ := txn.ToBytes(false) return utxoView.ConnectTransaction( txn, txn.Hash(), + int64(len(bytes)), bestHeight, - 0, + time.Now().UnixNano(), false, false, )