Skip to content

Commit

Permalink
Add proper timestamp to simulateSubmitTransaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
poolcoke committed Feb 2, 2024
1 parent 9c4f7f1 commit b5aaa99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit b5aaa99

Please sign in to comment.