projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19073: Fix dup tag detection.
[lightning.git]
/
gob.go
diff --git
a/gob.go
b/gob.go
index 907c7befcbb2570fcb2dc6ea3fbb1405074e013b..0bd18739612c3b14dc13ff847731479372166100 100644
(file)
--- a/
gob.go
+++ b/
gob.go
@@
-1,4
+1,8
@@
-package main
+// Copyright (C) The Lightning Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+package lightning
import (
"bufio"
import (
"bufio"
@@
-14,6
+18,8
@@
import (
type CompactGenome struct {
Name string
Variants []tileVariantID
type CompactGenome struct {
Name string
Variants []tileVariantID
+ StartTag tagID
+ EndTag tagID
}
type CompactSequence struct {
}
type CompactSequence struct {
@@
-23,6
+29,7
@@
type CompactSequence struct {
type TileVariant struct {
Tag tagID
type TileVariant struct {
Tag tagID
+ Ref bool
Variant tileVariantID
Blake2b [blake2b.Size256]byte
Sequence []byte
Variant tileVariantID
Blake2b [blake2b.Size256]byte
Sequence []byte
@@
-48,7
+55,7
@@
func DecodeLibrary(rdr io.Reader, gz bool, cb func(*LibraryEntry) error) error {
zrdr := ioutil.NopCloser(rdr)
var err error
if gz {
zrdr := ioutil.NopCloser(rdr)
var err error
if gz {
- zrdr, err = pgzip.NewReader(bufio.NewReaderSize(rdr, 1<<2
6
))
+ zrdr, err = pgzip.NewReader(bufio.NewReaderSize(rdr, 1<<2
0
))
if err != nil {
return err
}
if err != nil {
return err
}