Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
732 changes: 609 additions & 123 deletions docs/src/reference/webhooks.md

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions libs/gl-client-py/glclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,14 @@ def stream_log(self):
break
yield nodepb.LogEntry.FromString(bytes(n))

def stream_incoming(self):
stream = self.inner.stream_incoming(b"")
while True:
n = stream.next()
if n is None:
break
yield nodepb.IncomingPayment.FromString(bytes(n))

def stream_custommsg(self):
stream = self.inner.stream_custommsg(b"")
while True:
Expand Down
4 changes: 4 additions & 0 deletions libs/gl-client-py/glclient/greenlight.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ service Node {
//
// Currently includes off-chain payments received matching an
// invoice or spontaneus paymens through keysend.
rpc StreamIncoming(StreamIncomingFilter) returns (stream IncomingPayment) {}

// Stream the logs as they are produced by the node
//
Expand Down Expand Up @@ -120,6 +121,9 @@ message Amount {
}
}

// Options to stream_incoming to specify what to stream.
message StreamIncomingFilter {
}

message TlvField {
uint64 type = 1;
Expand Down
92 changes: 47 additions & 45 deletions libs/gl-client-py/glclient/greenlight_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions libs/gl-client-py/glclient/greenlight_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading