diff --git a/lib/grpcServer/handlers/tx-filter-stream/subscribeToTransactionsWithProofsHandlerFactory.js b/lib/grpcServer/handlers/tx-filter-stream/subscribeToTransactionsWithProofsHandlerFactory.js index 13674dc69..a5c3e3d37 100644 --- a/lib/grpcServer/handlers/tx-filter-stream/subscribeToTransactionsWithProofsHandlerFactory.js +++ b/lib/grpcServer/handlers/tx-filter-stream/subscribeToTransactionsWithProofsHandlerFactory.js @@ -15,6 +15,7 @@ const { v0: { TransactionsWithProofsResponse, RawTransactions, + InstantSendLockMessages, }, } = require('@dashevo/dapi-grpc'); @@ -63,8 +64,11 @@ async function sendMerkleBlockResponse(call, merkleBlock) { * @returns {Promise} */ async function sendInstantLockResponse(call, instantLock) { + const instantSendLockMessages = new InstantSendLockMessages(); + instantSendLockMessages.setMessagesList([instantLock.toBuffer()]); + const response = new TransactionsWithProofsResponse(); - response.setInstantSendLockMessages([instantLock.toBuffer()]); + response.setInstantSendLockMessages(instantSendLockMessages); await call.write(response); }