mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
removed call to fatal
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
8dba769ca6
commit
caf5dfdd93
@ -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})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user