lnwire: export ReadElements and WriteElements

In this commit, we export the ReadElements and WriteElements functions.
We do this as exporting these functions makes it possible for outside
packages to define serializations which use the BOLT 1.0 wire format.
This commit is contained in:
Olaoluwa Osuntokun committed 2018-12-24 19:58:06 -06:00
1 parent e6623f98b3
commit 4226232881
31 files changed
+125 -125

No files matched your search

+1 -1
View File
@@ -175,7 +175,7 @@ func TestMaxOutPointIndex(t *testing.T) {
}
var b bytes.Buffer
if err := writeElement(&b, op); err == nil {
if err := WriteElement(&b, op); err == nil {
t.Fatalf("write of outPoint should fail, index exceeds 16-bits")
}
}