mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
fix fmt
This commit is contained in:
parent
884ecbcaa3
commit
6bf342bf91
@ -43,7 +43,7 @@ func broadcast(conf *broadcastConfig) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{
|
response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{
|
||||||
Id: uuid.String(),
|
Id: uuid.String(),
|
||||||
Transactions: transactions})
|
Transactions: transactions})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -22,7 +22,7 @@ func createUnsignedTransaction(conf *createUnsignedTransactionConfig) error {
|
|||||||
|
|
||||||
sendAmountSompi := uint64(conf.SendAmount * constants.SompiPerKaspa)
|
sendAmountSompi := uint64(conf.SendAmount * constants.SompiPerKaspa)
|
||||||
response, err := daemonClient.CreateUnsignedTransactions(ctx, &pb.CreateUnsignedTransactionsRequest{
|
response, err := daemonClient.CreateUnsignedTransactions(ctx, &pb.CreateUnsignedTransactionsRequest{
|
||||||
Id: uuid.String(),
|
Id: uuid.String(),
|
||||||
From: conf.FromAddresses,
|
From: conf.FromAddresses,
|
||||||
Address: conf.ToAddress,
|
Address: conf.ToAddress,
|
||||||
Amount: sendAmountSompi,
|
Amount: sendAmountSompi,
|
||||||
|
|||||||
@ -35,7 +35,7 @@ func send(conf *sendConfig) error {
|
|||||||
|
|
||||||
createUnsignedTransactionsResponse, err :=
|
createUnsignedTransactionsResponse, err :=
|
||||||
daemonClient.CreateUnsignedTransactions(ctx, &pb.CreateUnsignedTransactionsRequest{
|
daemonClient.CreateUnsignedTransactions(ctx, &pb.CreateUnsignedTransactionsRequest{
|
||||||
Id: uuid.String(),
|
Id: uuid.String(),
|
||||||
From: conf.FromAddresses,
|
From: conf.FromAddresses,
|
||||||
Address: conf.ToAddress,
|
Address: conf.ToAddress,
|
||||||
Amount: sendAmountSompi,
|
Amount: sendAmountSompi,
|
||||||
@ -66,7 +66,7 @@ func send(conf *sendConfig) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{
|
response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{
|
||||||
Id: uuid.String(),
|
Id: uuid.String(),
|
||||||
Transactions: signedTransactions,
|
Transactions: signedTransactions,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -58,7 +58,7 @@ func sweep(conf *sweepConfig) error {
|
|||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
getExternalSpendableUTXOsResponse, err := daemonClient.GetExternalSpendableUTXOs(ctx, &pb.GetExternalSpendableUTXOsRequest{
|
getExternalSpendableUTXOsResponse, err := daemonClient.GetExternalSpendableUTXOs(ctx, &pb.GetExternalSpendableUTXOsRequest{
|
||||||
Id: uuid.String(),
|
Id: uuid.String(),
|
||||||
Address: address.String(),
|
Address: address.String(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -105,7 +105,7 @@ func sweep(conf *sweepConfig) error {
|
|||||||
fmt.Println("\tTo:\t", toAddress)
|
fmt.Println("\tTo:\t", toAddress)
|
||||||
|
|
||||||
response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{
|
response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{
|
||||||
Id: uuid.String(),
|
Id: uuid.String(),
|
||||||
IsDomain: true,
|
IsDomain: true,
|
||||||
Transactions: serializedSplitTransactions,
|
Transactions: serializedSplitTransactions,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user