(still need to fix deserialize... io wasn't working so I'm using bytes)
This commit is contained in:
parent
09f07770fd
commit
b79d0cc65a
@ -145,7 +145,7 @@ func writeElement(w *bytes.Buffer, element interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func readElement(r io.Reader, element interface{}) error {
|
func readElement(r *bytes.Buffer, element interface{}) error {
|
||||||
var err error
|
var err error
|
||||||
switch e := element.(type) {
|
switch e := element.(type) {
|
||||||
case *uint8:
|
case *uint8:
|
||||||
@ -244,7 +244,7 @@ func readElement(r io.Reader, element interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CreateChannel) DeserializeFundingRequest(r io.Reader) error {
|
func (c *CreateChannel) DeserializeFundingRequest(r *bytes.Buffer) error {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
//Message Type
|
//Message Type
|
||||||
|
Loading…
Reference in New Issue
Block a user