mirror of
https://github.com/status-im/status-go.git
synced 2025-01-11 15:14:52 +00:00
Fix Nimbus Post implementation
This commit is contained in:
parent
d3de88f790
commit
cbe2d621f4
eth-node/bridge/nimbus
@ -181,7 +181,7 @@ func (w *nimbusPublicWhisperAPIWrapper) Post(ctx context.Context, req types.NewM
|
||||
defer C.free(unsafe.Pointer(symKeyID))
|
||||
}
|
||||
if req.PublicKey != nil && len(req.PublicKey) > 0 {
|
||||
msg.pubKey = (*C.uchar)(C.CBytes(req.PublicKey))
|
||||
msg.pubKey = (*C.uchar)(C.CBytes(req.PublicKey[1:]))
|
||||
defer C.free(unsafe.Pointer(msg.pubKey))
|
||||
}
|
||||
msg.payloadLen = C.size_t(len(req.Payload))
|
||||
|
@ -5,7 +5,6 @@ package nimbusbridge
|
||||
// https://golang.org/cmd/cgo/
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -Wl,-rpath,'$ORIGIN' -L${SRCDIR} -lnimbus -lpcre -lm
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user