removed call to fatal

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-07 17:11:03 +01:00
parent 8dba769ca6
commit caf5dfdd93
No known key found for this signature in database

View File

@ -4,7 +4,6 @@ import (
"crypto/sha256" "crypto/sha256"
"encoding/json" "encoding/json"
"fmt" "fmt"
"log"
"strings" "strings"
"sync" "sync"
@ -14,7 +13,8 @@ import (
) )
var ( var (
// this mutex has to protect all signing and crafting transactions so that UTXOs are not spend twice by accident // this mutex has to protect all signing and crafting of transactions and their inputs
// so that UTXOs are not spend twice by accident
elementsSyncAccess sync.Mutex elementsSyncAccess sync.Mutex
) )
@ -135,7 +135,8 @@ func IssueNFTAsset(name string, machineAddress string, domain string) (assetID s
testMempoolAcceptResult := testMempoolAcceptResults[len(testMempoolAcceptResults)-1] testMempoolAcceptResult := testMempoolAcceptResults[len(testMempoolAcceptResults)-1]
if !testMempoolAcceptResult.Allowed { if !testMempoolAcceptResult.Allowed {
log.Fatalln("not accepted by mempool") err = fmt.Errorf("not accepted by mempool: %+v %+v\n", testMempoolAcceptResult, signRawTransactionWithWalletResult)
return
} }
hex, err = elements.SendRawTransaction(url, []string{signRawTransactionWithWalletResult.Hex}) hex, err = elements.SendRawTransaction(url, []string{signRawTransactionWithWalletResult.Hex})