CrytoBridge Did Not “Make It Rain”: KLKS Issue Recap

Last week during a period of maintenance and while support was doing a rescan for missing KLKS transactions an outage occurred. This article is to give visibility into what happened, the actual damage and what we did to prevent this particular issue going forward.

What Happened

Cryptobridge identified strange transactions in the KLKS wallet being credited. During scanning the KLKS chain for missing KLKS transactions, an agent modified the rescan script to check as far back as 4 months instead of the last 4 –7 days. During this time the BTS node that was being used to check if KLKS had already been issued also had an outage inadvertently. As a result old transactions that occurred during the KLKS swap got added as new transactions since the old transactions would not have been cached.

Upon further investigation it was discovered that the KLKS wallet does not read all parameters in the config file like most other coins. It ignored staking=0 in the config file which caused KLKS to generate staking transactions momentarily. This was what prompted us to start manually scanning the wallet to check transactions which lead to the issue.

What We Did

Withdrawals were halted immediately upon discovering the error that occurred. CryptoBridge then proceeded to do the following:

  1. Temporarily stopped withdrawals of KLKS.
  2. Investigated and removed old transactions.
  3. Recovered the issued KLKS before most could be sold or withdrawn.
  4. Investigate the root cause and made the changes required.

We’ve recovered all but 115,611 KLKS, worth ~1.27 BTC ($8,255 USD) all of which has been paid back using our coin listing fee.

Our Solution To Prevent This Particular Case From Reoccurring

  1. Updated the blockchain rescan script to only scan for 7 day periods when required which will always be in the cache and not require a BTS node.
  2. Developed and open sourced a Bitshares health check module that will be integrated into our processes.

The module can be found at:

In summary it was a human error combined with a temporary outage with a Bitshares node. Despite being in beta we have no excuses for what occurred and have been taking several steps to improve the stability of our infrastructure and lay the foundation for federation (our distributed gateways run by BCO holders). Thank you for your understanding and support.

Want to learn more?

Written by

CryptoBridge is a decentralized exchange (DEX) in the hands of BridgeCoin owners that supports trading of most popular altcoins

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store