MCPcopy Create free account
hub / github.com/ElementsProject/lightning / rec

Function rec

plugins/lsps-plugin/src/core/tlv.rs:336–341  ·  view source on GitHub ↗

Small helpers to keep tests readable

(type_: u64, value: &[u8])

Source from the content-addressed store, hash-verified

334
335 // Small helpers to keep tests readable
336 fn rec(type_: u64, value: &[u8]) -> TlvRecord {
337 TlvRecord {
338 type_,
339 value: value.to_vec(),
340 }
341 }
342
343 fn build_bytes(type_: u64, value: &[u8]) -> Vec<u8> {
344 let mut v = Vec::new();

Callers

nothing calls this directly

Calls 1

to_vecMethod · 0.80

Tested by

no test coverage detected