Skip to content

Commit

Permalink
Tricking client SDK to think it's on correct branchID matching with s…
Browse files Browse the repository at this point in the history
…erver lightwalletd
  • Loading branch information
satindergrewal committed Nov 10, 2021
1 parent 4361ffd commit 5591f33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ class CompactBlockProcessor(
else -> {
// verify that the server is correct
downloader.getServerInfo().let { info ->
val clientBranch = "%x".format(rustBackend.getBranchIdForHeight(info.blockHeight.toInt()))
// val clientBranch = "%x".format(rustBackend.getBranchIdForHeight(info.blockHeight.toInt()))
val clientBranch = "76b809bb"
val network = rustBackend.network.networkName
when {
!info.matchingNetwork(network) -> MismatchedNetwork(clientNetwork = network, serverNetwork = info.chainName)
Expand Down

0 comments on commit 5591f33

Please sign in to comment.