Skip to content

Commit

Permalink
added reference_id to withdrawal request creation (#389)
Browse files Browse the repository at this point in the history
* added reference_id to withdrawal request creation

* improved comment in proto

* fixed typo
  • Loading branch information
daliclovr authored Jul 25, 2024
1 parent 3a011ec commit 24c41c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Proto/nodeguard.proto
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ message RequestWithdrawalRequest {
FEES_TYPE mempool_fee_rate = 8;
// Fee rate in sat/vbyte
optional int32 custom_fee_rate = 9;
// External reference id for the withdrawal request
optional string reference_id = 10;
}

message RequestWithdrawalResponse {
Expand Down
3 changes: 2 additions & 1 deletion src/Rpc/NodeGuardService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ public override async Task<RequestWithdrawalResponse> RequestWithdrawal(RequestW
RequestMetadata = request.RequestMetadata,
Changeless = request.Changeless,
MempoolRecommendedFeesType = (MempoolRecommendedFeesType)request.MempoolFeeRate,
CustomFeeRate = request.CustomFeeRate
CustomFeeRate = request.CustomFeeRate,
ReferenceId = request.ReferenceId
};

//Save withdrawal request
Expand Down

0 comments on commit 24c41c9

Please sign in to comment.