@@ -32,7 +32,8 @@ message TxFilter {
3232}
3333
3434// RawTransaction contains the complete transaction data. It also optionally includes
35- // the block height in which the transaction was included.
35+ // the block height in which the transaction was included, or, when returned
36+ // by GetMempoolStream(), the latest block height.
3637message RawTransaction {
3738 bytes data = 1 ; // exact data returned by Zcash 'getrawtransaction'
3839 uint64 height = 2 ; // height that the transaction was mined (or -1)
@@ -109,11 +110,12 @@ message Exclude {
109110
110111// The TreeState is derived from the Zcash z_gettreestate rpc.
111112message TreeState {
112- string network = 1 ; // "main" or "test"
113- uint64 height = 2 ;
114- string hash = 3 ; // block id
115- uint32 time = 4 ; // Unix epoch time when the block was mined
116- string tree = 5 ; // sapling commitment tree state
113+ string network = 1 ; // "main" or "test"
114+ uint64 height = 2 ; // block height
115+ string hash = 3 ; // block id
116+ uint32 time = 4 ; // Unix epoch time when the block was mined
117+ string saplingTree = 5 ; // sapling commitment tree state
118+ string orchardTree = 6 ; // orchard commitment tree state
117119}
118120
119121// Results are sorted by height, which makes it easy to issue another
@@ -176,9 +178,6 @@ service CompactTxStreamer {
176178 // Return the txids corresponding to the given t-address within the given block range
177179 rpc GetTaddressTxids (TransparentAddressBlockFilter ) returns (stream RawTransaction ) {}
178180
179- // Legacy API that is used as a fallback for t-Address support, if the server is running the old version (lwdv2)
180- rpc GetAddressTxids (TransparentAddressBlockFilter ) returns (stream RawTransaction ) {}
181-
182181 rpc GetTaddressBalance (AddressList ) returns (Balance ) {}
183182 rpc GetTaddressBalanceStream (stream Address ) returns (Balance ) {}
184183
@@ -193,6 +192,8 @@ service CompactTxStreamer {
193192 // in the exclude list that don't exist in the mempool are ignored.
194193 rpc GetMempoolTx (Exclude ) returns (stream CompactTx ) {}
195194
195+ // Return a stream of current Mempool transactions. This will keep the output stream open while
196+ // there are mempool transactions. It will close the returned stream when a new block is mined.
196197 rpc GetMempoolStream (Empty ) returns (stream RawTransaction ) {}
197198
198199 // GetTreeState returns the note commitment tree state corresponding to the given block.
0 commit comments