stacks-subnets icon indicating copy to clipboard operation
stacks-subnets copied to clipboard

Node would crash if invalid JSON returned from `/v2/transactions` endpoint

Open jbencin opened this issue 2 years ago • 0 comments

Describe the bug There is an unwrap() when processing the response from /v2/transactions in l1_submit_tx here

Expected behavior The application should never crash on incorrect/malicious network input, as this is a potential denial-of-service vector

Additional context unwrap() should be replaced with ?, and if necessary the appropriate From trait needs to be implemented on subnet_node::burnchains:Error to convert the error

jbencin avatar Jun 01 '23 18:06 jbencin