Skip to content

Commit 25d2045

Browse files
committed
event: --no-verify flag.
1 parent 09b9939 commit 25d2045

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

req.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ example:
4848
Name: "jq",
4949
Usage: "filter returned events with jq expression",
5050
},
51+
&cli.BoolFlag{
52+
Name: "no-verify",
53+
Usage: "skip event signature verification from relays",
54+
},
5155
&cli.StringFlag{
5256
Name: "only-missing",
5357
Usage: "use nip77 negentropy to only fetch events that aren't present in the given jsonl file",
@@ -104,6 +108,10 @@ example:
104108
),
105109
ArgsUsage: "[relay...]",
106110
Action: func(ctx context.Context, c *cli.Command) error {
111+
if c.Bool("no-verify") {
112+
sys.Pool.RelayOptions.AssumeValid = true
113+
}
114+
107115
negentropy := c.Bool("ids-only") || c.IsSet("only-missing")
108116
if negentropy {
109117
if c.Bool("paginate") || c.Bool("stream") || c.Bool("outbox") {

0 commit comments

Comments
 (0)