Skip to content

Commit

Permalink
Reuse height binder in notifications for money
Browse files Browse the repository at this point in the history
  • Loading branch information
lostystyg committed Sep 5, 2022
1 parent 77f9e87 commit 2453407
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pocketdb/repositories/web/WebRpcRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5700,9 +5700,7 @@ namespace PocketDb
where t.Type in (1,2,3) -- 1 default money transfer, 2 coinbase, 3 coinstake
and t.Height = ?
)sql",
[this](std::shared_ptr<sqlite3_stmt*>& stmt, int& i, QueryParams const& queryParams){
TryBindStatementInt64(stmt, i++, queryParams.height);
}
heightBinder
}},

{
Expand Down

0 comments on commit 2453407

Please sign in to comment.