We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 947b39e commit 37b8a06Copy full SHA for 37b8a06
transaction/broadcaster/arc.go
@@ -3,9 +3,7 @@ package broadcaster
3
import (
4
"bytes"
5
"context"
6
- "database/sql/driver"
7
"encoding/json"
8
- "errors"
9
"fmt"
10
"io"
11
"log"
@@ -60,18 +58,6 @@ type ArcResponse struct {
60
58
Detail *string `json:"detail,omitempty"`
61
59
}
62
63
-func (ts ArcResponse) Value() (driver.Value, error) {
64
- return json.Marshal(ts)
65
-}
66
-
67
-func (f *ArcResponse) Scan(value interface{}) error {
68
- b, ok := value.([]byte)
69
- if !ok {
70
- return errors.New("type assertion to []byte failed")
71
- }
72
- return json.Unmarshal(b, &f)
73
74
75
func (a *Arc) Broadcast(t *transaction.Transaction) (*transaction.BroadcastSuccess, *transaction.BroadcastFailure) {
76
var buf *bytes.Buffer
77
for _, input := range t.Inputs {
0 commit comments