Skip to content

Commit

Permalink
Merge pull request #61 from bitcoin-sv/arc-failure
Browse files Browse the repository at this point in the history
remove arc scan and value
  • Loading branch information
rohenaz authored Nov 26, 2024
2 parents fd67599 + 37b8a06 commit 32360f4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions transaction/broadcaster/arc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package broadcaster
import (
"bytes"
"context"
"database/sql/driver"
"encoding/json"
"errors"
"fmt"
"io"
"log"
Expand Down Expand Up @@ -60,18 +58,6 @@ type ArcResponse struct {
Detail *string `json:"detail,omitempty"`
}

func (ts ArcResponse) Value() (driver.Value, error) {
return json.Marshal(ts)
}

func (f *ArcResponse) Scan(value interface{}) error {
b, ok := value.([]byte)
if !ok {
return errors.New("type assertion to []byte failed")
}
return json.Unmarshal(b, &f)
}

func (a *Arc) Broadcast(t *transaction.Transaction) (*transaction.BroadcastSuccess, *transaction.BroadcastFailure) {
var buf *bytes.Buffer
for _, input := range t.Inputs {
Expand Down

0 comments on commit 32360f4

Please sign in to comment.