File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ type Nip90Input struct {
73
73
JobRequestEventJSON string
74
74
Event * goNostr.Event
75
75
ResultKind int
76
+ TaggedPubkeys map [string ]struct {}
76
77
}
77
78
78
79
func Nip90InputFromJobRequestEvent (e * goNostr.Event ) (* Nip90Input , error ) {
@@ -83,6 +84,7 @@ func Nip90InputFromJobRequestEvent(e *goNostr.Event) (*Nip90Input, error) {
83
84
Event : e ,
84
85
ResultKind : responseKind (e .Kind ),
85
86
Inputs : make ([]* Input , 0 , 1 ),
87
+ TaggedPubkeys : make (map [string ]struct {}),
86
88
}
87
89
88
90
eventJson , err := json .Marshal (e )
@@ -121,6 +123,8 @@ func Nip90InputFromJobRequestEvent(e *goNostr.Event) (*Nip90Input, error) {
121
123
return nil , err
122
124
}
123
125
input .BidMillisats = bidMillisats
126
+ } else if e .Tags [i ][0 ] == "p" && len (e .Tags [i ]) == 2 {
127
+ input .TaggedPubkeys [e .Tags [i ][0 ]] = struct {}{}
124
128
}
125
129
}
126
130
}
You can’t perform that action at this time.
0 commit comments