gudnuf / bolt12-prism

CLN plugin for lightning prisms using BOLT 12
15 stars 5 forks source link

use `Prism.get` for finding all prisms #91

Closed gudnuf closed 3 months ago

gudnuf commented 3 months ago

This unifies the getting of one and all prisms into Prism.get. Also, when a prism ID was provided to prism-list, a dict with the prism was returned rather than an array of prisms. Now, one prism is returned in the same format as many prisms.

Got rid of Prism.find_all because it was only used in prism-list.