Giter Club home page Giter Club logo

teller's People

Contributors

angusfretwell avatar briancaine avatar fox000002 avatar gogo-tattoo avatar gz-c avatar hanyh2004 avatar iketheadore avatar meam364 avatar morphium avatar olemis avatar snyk-bot avatar therealssj avatar vyloy avatar zhiyuan2007 avatar zsm5j avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teller's Issues

Create fake btcd that reports deposits to teller

Need a fake btcd that will report a deposit to teller. Should have an api for triggering a fake deposit. This is so that teller can be tested without using real btc and waiting for block time.

Use skyd rpc to create txn before sending txn

If we send coins, but then the database save fails, we will not know that we sent the coins. So we will send twice. The "send" command, sent to skycoin daemon, needs to have two parts. First, create a sky-txn, to obtain a txid. Then, inside a bolt.DB transaction, update the db and perform the coin send with the sky-txn. This way, if the coin send fails, the database update will be rolled back.

Configure and save SkyBtcRate as a decimal string

Right now, the SkyBtcRate config value is an int64, and it is saved to the DepositInfo struct as an int64.

This does not allow specifying a rate of below 1, e.g. 0.1SKY per other coin. This will matter for multicoin support.

Switch this rate to a decimal string in configuration and when saving to the db (it is converted to a decimal.Decimal during calculation anyway).

Shutdown stalls in some condition

Log:

[2017-11-08T07:59:27+08:00] DEBUG btc.go:370 scanner.btc: Waiting for the next block blockHash="00000000c57a1b6351208c592eef8eff015d93c899a047fe35b35252a4a59bcb" blockHeight=29
[2017-11-08T07:59:30+08:00] DEBUG btc.go:308 scanner.btc: Scanning block hash="00000000bc919cfb64f62de736d55cf79e3d535b474ace256b4fbb56073f64db" height=30
[2017-11-08T07:59:30+08:00] INFO btc.go:317 scanner.btc: Counted deposits from block hash="00000000bc919cfb64f62de736d55cf79e3d535b474ace256b4fbb56073f64db" height=30 scannedDeposits=0
[2017-11-08T07:59:30+08:00] INFO btc.go:190 scanner.btc: Scanned deposits from block bestHeight=324903 config={ScanPeriod:20s DepositBufferSize:100 InitialScanHeight:0 ConfirmationsRequired:1} hash="00000000bc919cfb64f62de736d55cf79e3d535b474ace256b4fbb56073f64db" height=30 scannedDeposits=0 totalScannedDeposits=0
[2017-11-08T07:59:30+08:00] DEBUG btc.go:370 scanner.btc: Waiting for the next block blockHash="00000000bc919cfb64f62de736d55cf79e3d535b474ace256b4fbb56073f64db" blockHeight=30
[2017-11-08T08:06:22+08:00] INFO http.go:457 teller.http: method="GET" remoteAddr="127.0.0.1:53959" skyAddr="---" url="/api/status?skyaddr=---"
[2017-11-08T08:06:22+08:00] INFO http.go:468 teller.http: Sending StatusRequest to teller method="GET" remoteAddr="127.0.0.1:53959" skyAddr="---" url="/api/status?skyaddr=---"
[2017-11-08T08:06:22+08:00] INFO http.go:484 teller.http: Got depositStatuses depositStatuses=[] depositStatusesLen=0 method="GET" remoteAddr="127.0.0.1:53959" skyAddr="---" url="/api/status?skyaddr=---"
[2017-11-08T08:06:22+08:00] INFO httputil.go:57 teller.http: HTTP Request duration="1ms" method="GET" remoteAddr="127.0.0.1:53959" status=200 statusText="OK" url="/api/status?skyaddr=---"
[2017-11-08T08:06:26+08:00] INFO http.go:393 teller.http: bindReq=&{SkyAddr:--- CoinType:BTC} method="POST" remoteAddr="127.0.0.1:53959" url="/api/bind"
[2017-11-08T08:06:26+08:00] INFO http.go:404 teller.http: Calling service.BindAddress bindReq=&{SkyAddr:--- CoinType:BTC} method="POST" remoteAddr="127.0.0.1:53959" url="/api/bind"
[2017-11-08T08:06:26+08:00] INFO http.go:417 teller.http: Bound sky and btc addresses bindReq=&{SkyAddr:--- CoinType:BTC} btcAddr="1PZ63K3G4gZP6A6E2TTbBwxT5bFQGL2TLB" method="POST" remoteAddr="127.0.0.1:53959" url="/api/bind"
[2017-11-08T08:06:26+08:00] INFO httputil.go:57 teller.http: HTTP Request duration="268ms" method="POST" remoteAddr="127.0.0.1:53959" status=200 statusText="OK" url="/api/bind"
[2017-11-08T08:06:29+08:00] INFO http.go:457 teller.http: method="GET" remoteAddr="127.0.0.1:53959" skyAddr="---" url="/api/status?skyaddr=---"
[2017-11-08T08:06:29+08:00] INFO http.go:468 teller.http: Sending StatusRequest to teller method="GET" remoteAddr="127.0.0.1:53959" skyAddr="---" url="/api/status?skyaddr=---"
[2017-11-08T08:06:29+08:00] INFO http.go:484 teller.http: Got depositStatuses depositStatuses=[{Seq:0 UpdatedAt:1510099589 Status:waiting_deposit CoinType:}] depositStatusesLen=1 method="GET" remoteAddr="127.0.0.1:53959" skyAddr="---" url="/api/status?skyaddr=---"
[2017-11-08T08:06:29+08:00] INFO httputil.go:57 teller.http: HTTP Request duration="0ms" method="GET" remoteAddr="127.0.0.1:53959" status=200 statusText="OK" url="/api/status?skyaddr=---"
^C[2017-11-08T08:06:46+08:00] INFO teller.go:299 teller: Shutting down...
[2017-11-08T08:06:46+08:00] INFO teller.go:302 teller: Shutting down monitorService
[2017-11-08T08:06:46+08:00] INFO monitor.go:113 teller.monitor: Shutting down monitor service timeout=5s
[2017-11-08T08:06:46+08:00] INFO teller.go:307 teller: Shutting down tellerServer
[2017-11-08T08:06:46+08:00] INFO http.go:315 teller.http: Shutting down server proto="HTTP" timeout=5s
[2017-11-08T08:06:46+08:00] INFO http.go:174 teller.http: HTTP service closed
[2017-11-08T08:06:46+08:00] INFO http.go:315 teller.http: Shutting down server proto="HTTPS" timeout=5s
[2017-11-08T08:06:46+08:00] INFO teller.go:59 teller: Teller closed config={MaxBoundBtcAddresses:5}
[2017-11-08T08:06:46+08:00] INFO monitor.go:91 teller.monitor: Monitor Service closed config={Addr:127.0.0.1:7711}
[2017-11-08T08:06:46+08:00] INFO teller.go:175 teller: Backgrounded task tellerServer.Run shutdown
[2017-11-08T08:06:46+08:00] INFO teller.go:175 teller: Backgrounded task monitorService.Run shutdown
[2017-11-08T08:06:47+08:00] INFO teller.go:312 teller: Shutting down btcScanner
[2017-11-08T08:06:47+08:00] INFO btc.go:228 scanner.btc: Closing BTC scanner
[2017-11-08T08:06:47+08:00] INFO btc.go:232 scanner.btc: Waiting for BTC scanner to stop
[2017-11-08T08:06:47+08:00] WARN exchange.go:169 teller.exchange: Scan service closed, watch deposits loop quit goroutine="watchDeposits"

Remove boltdb cache

Cache added before performance measurement, will be source of bugs/maintenance burden. Remove cache layer until bolt performance measured and optimized

Scanning Wallet API: 1# Scanner API

Verify exist of function in scanners

  • takes in a map of addresses

  • takes in a bitcoin block

  • returns

  • block height

  • block hash

  • returns list of tx:index pairs for deposits to addresses in map that is fed in

calculate error about decimal part

【calculate.go】calculate error about decimal part because btc value always is 0.123237, 1.2387654 and so on, primary reason was skycoin can't supprt decimal
testcase

            {
                satoshis: 11345000, // 0.11345 BTC
                rate:     "100",
                result:   11000000, // 11 SKY
           },
        Error Trace:    calculate_test.go:90
    	Error:		Not equal: 0xa7d8c0 (expected)
    			        != 0xac6ca0 (actual)
    	Messages:	11000000 != 11300000

Error in proxy public key generation using command "go run cmd/proxy/proxy.go"

Clone the repository and try to run this command after generating btcaddresses.. the following errors are poping up

cmd/proxy/proxy.go:43: cannot use *agent.Options literal (type *agent.Options) as type agent.Options in argument to agent.Listen
cmd/proxy/proxy.go:44: unknown field 'NoShutdownCleanup' in struct literal of type agent.Options
cmd/proxy/proxy.go:67: cannot use lseckey (type "github.com/skycoin/skycoin/src/cipher".SecKey) as type "github.com/skycoin/teller/vendor/github.com/skycoin/skycoin/src/cipher".SecKey in field value

Update frontend to use /api/config endpoint

GET /api/config returns this:

{
    "enabled": true,
    "btc_confirmations_required": 1,
    "max_bound_btc_addrs": 5,
    "sky_btc_exchange_rate": "123.000000"
}

enabled should replace start time and end time

RawTx vs Tx len check is invalid

If Tx is empty, RawTx should not be empty
If RawTx is empty, Tx should not be empty

RawTx is not empty when txindex=1 in btcd settings.

Do not compare len(Tx) != len(RawTx),
check len(RawTx) != 0 to confirm txindex=1 is set

Update Russian and Chinese localizations

Here's what changed:

diff --git a/web/src/locales/en.js b/web/src/locales/en.js
index c5b9626..6ce6eef 100644
--- a/web/src/locales/en.js
+++ b/web/src/locales/en.js
@@ -12,14 +12,22 @@ export default {
 </ul>
 
 <p>You can check the status of your order by entering your address and selecting <strong>Check status</strong>.</p>
+<p>Each time you select <strong>Get Address</strong>, a new BTC address is generated. A single SKY address can have up to 5 BTC addresses assigned to it.</p>
     `,
-    btcAddressFor: 'BTC address for {skyAddress}',
     statusFor: 'Status for {skyAddress}',
     enterAddress: 'Enter Skycoin address',
     getAddress: 'Get address',
     checkStatus: 'Check status',
+    loading: 'Loading...',
+    btcAddress: 'BTC address',
     errors: {
       noSkyAddress: 'Please enter your SKY address.',
     },
+    statuses: {
+      done: 'Transaction {id}: Skycoin deposit confirmed (updated at {updated}).',
+      waiting_deposit: 'Transaction {id}: waiting for BTC deposit (updated at {updated}).',
+      waiting_send: 'Transaction {id}: BTC deposit received; Skycoin deposit is queued (updated at {updated}).',
+      waiting_confirm: 'Transaction {id}: Skycoin deposit sent; waiting to confirm transaction (updated at {updated}).',
+    },
   },
 };

Add twitter ad analytics

<!— Twitter single-event website tag code —>

<script src="//platform.twitter.com/oct.js" type="text/javascript"></script> <script type="text/javascript">twttr.conversion.trackPid('ny03t', { tw_sale_amount: 0, tw_order_quantity: 0 });</script>

API for start/end time

Add API to backend exposing configuration such as start/end time

Frontend will use this API to show the information, replacing the hardcoded config settings, so there is no need to recompile the frontend to change the parameters.

Option in proxy to disable everything except web page

Once the event ends, we want proxy to show the web page with a message that says it is over. But we don't want proxy to accept any connection from teller.

Add cli option to proxy that disables the listener for teller.

Update README.md

Include instructions for:

  • Configuration
  • Setup btcd
  • Setup skyd
  • Setup nginx reverse proxy or ssh reverse proxy
  • Setup wallet
  • Setup btc addresses
  • Compiling web frontend

Change home page text

The distribution ends August 31. Replace all of the text and form input in the image with this text:

The previous distribution event finished on {{ eventEndDateHuman }}.  

Join the <a href="https://t.me/skycoin">Skycoin Telegram</a>, 
<a href="https://skycoin.slack.com">Skycoin Slack</a> or follow the 
<a href="https://twitter.com/skycoinproject">Skycoin Twitter</a> 
to learn when the next event begins.

Add configuration variables for this. Add the following variables:

  • eventInProgress (false)
  • eventStartDateHuman ("August 8, 2017 12:00 GMT")
  • eventEndDateHuman ("August 31, 2017 12:00 GMT")

get deposit by traverse Tx rather than RawTx

why RawTx is empty but Tx not, such as

Weight:860 Height:20000 Version:1 VersionHex:00000001 
MerkleRoot:01f8255cad4f0060170f5cca22a5e0ca99fa62b3d26b89a34ac3100d876d14a4 Tx:[01f8255cad4f0060170f5cca22a5e0ca99fa62b3d26b89a34ac3100d876d14a4] RawTx:[] 

teller traverse block by RawTx, info as:


teller/src/scanner/store.go
func ScanBTCBlock(block *btcjson.GetBlockVerboseResult, depositAddrs []string) ([]Deposit, error)

code as:

for _, tx := range block.RawTx {
          for _, v := range tx.Vout {
              amt, err := btcutil.NewAmount(v.Value)
              if err != nil {
                  return nil, err
              }

does this worked?
my code as follow

      for _, txidstr := range block.Tx {
          txid, err := chainhash.NewHashFromStr(txidstr)
          if err != nil {
              fmt.Printf("new hash from str failed id: %s\n", txidstr)
              continue
          }
          tx, err := client.GetRawTransactionVerbose(txid)
          if err != nil {
              fmt.Printf("get getRawTransactionVerbose failed: %s, err: %s\n", txidstr, err.Error())
              continue
          }
          fmt.Printf("tx:%+v\n", tx.Txid)
      }

Add google analytics

Google analytics code:

UA-105234182-1

Snippet:

<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-105234182-1', 'auto'); ga('send', 'pageview'); </script>

Affiliate code system

An affiliate code system allows people who refer buyers to receive a portion of the coins sold.
They will not receive a portion of the coins taken in (BTC, ETH etc) because this makes the system much more complex (will need user accounts, a hot wallet or manual processing of withdrawals, etc).

Requirements:

  • Affiliate Portal

A webpage "Affiliate Portal" allows a user to do the following:

  • Provide a skycoin address and receive a URL to the "buy skycoin" page with an affiliate tracking code and a URL to the "join affiliate program" page with an affiliate tracking code
  • If there is an affiliate code in the url of the portal page, save this affiliate code too. This is the original referrer.

On the affiliate portal backend,

  • Payouts will be to the skycoin address received when generating the code. Save the skycoin address with the tracking code in the database.
  • The tracking code format should be defined, possibly derived from the skycoin address irreversibly, such as a hash

Using only the skycoin address for this is simpler, but has other limitations. It does not work as a username or password, since addresses become public on the blockchain. Therefore the user can't do things such as check their pending rewards (if we send rewards on a time interval). Instead we will try to send their rewards immediately. Sending immediately has problems too, because some rewards may be too small to send. So, a compromise will need to be found, unless we want to implement a full user system.

In the teller service, add a new component for sending affiliate payouts:

  • Reads from an channel exposed by Exchanger
  • Exchanger writes to this channel when it sends coins
  • This component saves a record of the coins sent, and determines the affiliate rewards
  • This component has a processing loop that sends the affiliate rewards
  • Use a separate wallet for the affiliate rewards
  • Use a separate database for affiliate rewards

Affiliate reward calculation:

  • When the affiliate signed up, they may have been referred by another. We kept track of this in the affiliate portal, to calculate tiered referral rewards.
  • Add a configuration for how many referral layers to give rewards to, and the percent at each layer
  • If the layer is 1, this is a simple, typical referral system.
  • When processing the deposit, look up the original referring affiliate for this deposit
  • Then, following each affiliate, find who referred who, up to N layers deep
  • Calculate rewards per affiliate level, based on configuration
  • Create a "send" event for each affiliate and write it to a channel
  • In another goroutine, process the send events

There is a problem with this; if the affiliate reward is too small it can't be sent. Instead, this might be changed to calculate cumulative affiliate rewards on a fixed time interval, and if the cumulative reward is above a threshold, then send it.

Upgrade skycoin version

The current version vendored in skycoin has a mistake,

daemon.MaxDropletPrecision = 1, it should be 0.

The next version of skycoin will allow 2 or 3 decimals. But tests will need adjusting.

Fix test failed, closed channel write panic

https://travis-ci.org/skycoin/teller/builds/295600020

The command "go test ./cmd/..." exited with 0.
13.76s$ go test ./src/...
ok  	github.com/skycoin/teller/src/addrs	0.423s
?   	github.com/skycoin/teller/src/config	[no test files]
ok  	github.com/skycoin/teller/src/exchange	7.148s
ok  	github.com/skycoin/teller/src/monitor	1.016s
[2017-11-01T04:47:49Z] INFO btc.go:76 scanner.btc: Start bitcoin blockchain scan service config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2}
[2017-11-01T04:47:49Z] INFO btc.go:228 scanner.btc: Loading unprocessed deposit values
[2017-11-01T04:47:49Z] INFO btc.go:236 scanner.btc: Loaded unprocessed deposit values depositsLen=0
[2017-11-01T04:47:49Z] INFO btc.go:104 scanner.btc: Begin scanning blockchain initialHash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" initialHeight=235205
[2017-11-01T04:47:49Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" height=235205
[2017-11-01T04:47:49Z] INFO btc.go:76 scanner.btc: Start bitcoin blockchain scan service config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:0}
[2017-11-01T04:47:49Z] INFO btc.go:228 scanner.btc: Loading unprocessed deposit values
[2017-11-01T04:47:49Z] INFO btc.go:236 scanner.btc: Loaded unprocessed deposit values depositsLen=0
[2017-11-01T04:47:49Z] INFO btc.go:305 scanner.btc: Counted deposits from block hash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" height=235205 scannedDeposits=31
[2017-11-01T04:47:49Z] INFO btc.go:179 scanner.btc: Scanned deposits from block bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" height=235205 scannedDeposits=31 totalScannedDeposits=31
[2017-11-01T04:47:49Z] DEBUG btc.go:358 scanner.btc: Waiting for the next block blockHash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" blockHeight=235205
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:2952696 Height:235205 Tx:2bc199bd35e3e49cac62cb4b96357a7570ed183fbbfe5f3fae28a40785c86032 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:104 scanner.btc: Begin scanning blockchain initialHash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" initialHeight=235205
[2017-11-01T04:47:49Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" height=235205
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:2952696 Height:235205 Tx:2bc199bd35e3e49cac62cb4b96357a7570ed183fbbfe5f3fae28a40785c86032 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c15c075a3a2487c39952b6f96f694dc679b1a5922c6d483ac0eea18a968b33c4 N:0 Processed:false}
[2017-11-01T04:47:49Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" height=235206
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c15c075a3a2487c39952b6f96f694dc679b1a5922c6d483ac0eea18a968b33c4 N:0 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:86350000 Height:235205 Tx:275a1bc55ebe718e1f8b1ba5e107898fb7d6eebbc557372a96c533258486cab0 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:86350000 Height:235205 Tx:275a1bc55ebe718e1f8b1ba5e107898fb7d6eebbc557372a96c533258486cab0 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:6917609f808ee48eb34fc3cd65289b00cb4f258daa2c6cfcdb7953ed2dff712f N:0 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:305 scanner.btc: Counted deposits from block hash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" height=235205 scannedDeposits=31
[2017-11-01T04:47:49Z] INFO btc.go:179 scanner.btc: Scanned deposits from block bestHeight=235214 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:0} hash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" height=235205 scannedDeposits=31 totalScannedDeposits=31
[2017-11-01T04:47:49Z] DEBUG btc.go:358 scanner.btc: Waiting for the next block blockHash="000000000000018d8ece83a004c5a919210d67798d13aa901c4d07f8bf87b719" blockHeight=235205
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:2952696 Height:235205 Tx:2bc199bd35e3e49cac62cb4b96357a7570ed183fbbfe5f3fae28a40785c86032 N:1 Processed:false}
[2017-11-01T04:47:49Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" height=235206
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:2952696 Height:235205 Tx:2bc199bd35e3e49cac62cb4b96357a7570ed183fbbfe5f3fae28a40785c86032 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c15c075a3a2487c39952b6f96f694dc679b1a5922c6d483ac0eea18a968b33c4 N:0 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c15c075a3a2487c39952b6f96f694dc679b1a5922c6d483ac0eea18a968b33c4 N:0 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:86350000 Height:235205 Tx:275a1bc55ebe718e1f8b1ba5e107898fb7d6eebbc557372a96c533258486cab0 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:305 scanner.btc: Counted deposits from block hash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" height=235206 scannedDeposits=47
[2017-11-01T04:47:49Z] INFO btc.go:179 scanner.btc: Scanned deposits from block bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" height=235206 scannedDeposits=47 totalScannedDeposits=78
[2017-11-01T04:47:49Z] DEBUG btc.go:358 scanner.btc: Waiting for the next block blockHash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" blockHeight=235206
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:6917609f808ee48eb34fc3cd65289b00cb4f258daa2c6cfcdb7953ed2dff712f N:0 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:1902696 Height:235205 Tx:1c200c69b9b16d5b36021c62c3d5ddffba8499a08fd135af4eacc312493327a3 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:1902696 Height:235205 Tx:1c200c69b9b16d5b36021c62c3d5ddffba8499a08fd135af4eacc312493327a3 N:1 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:8f6ed1882559d4a66ffe8a0c84f81ca185890935b70ad71580516270762fa7d7 N:0 Processed:false}
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:49Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:305 scanner.btc: Counted deposits from block hash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" height=235206 scannedDeposits=48
[2017-11-01T04:47:50Z] INFO btc.go:179 scanner.btc: Scanned deposits from block bestHeight=235214 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:0} hash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" height=235206 scannedDeposits=48 totalScannedDeposits=79
[2017-11-01T04:47:50Z] DEBUG btc.go:358 scanner.btc: Waiting for the next block blockHash="00000000000001588e7832fd94d683e477a9bb25c10921d25749f93c265493f6" blockHeight=235206
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:8f6ed1882559d4a66ffe8a0c84f81ca185890935b70ad71580516270762fa7d7 N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:85300000 Height:235205 Tx:a8c8fcbd9ced75d9e1a0edc99f7cd02cb6016f805fb3d8d77232dc389103c9ac N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:86350000 Height:235205 Tx:275a1bc55ebe718e1f8b1ba5e107898fb7d6eebbc557372a96c533258486cab0 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:6917609f808ee48eb34fc3cd65289b00cb4f258daa2c6cfcdb7953ed2dff712f N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:85300000 Height:235205 Tx:a8c8fcbd9ced75d9e1a0edc99f7cd02cb6016f805fb3d8d77232dc389103c9ac N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:addb4f5046726039314105b8eb7399e7ae3191b5c6e88d94d3cb5df16f17d0ae N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:6917609f808ee48eb34fc3cd65289b00cb4f258daa2c6cfcdb7953ed2dff712f N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:1902696 Height:235205 Tx:1c200c69b9b16d5b36021c62c3d5ddffba8499a08fd135af4eacc312493327a3 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:addb4f5046726039314105b8eb7399e7ae3191b5c6e88d94d3cb5df16f17d0ae N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:84250000 Height:235205 Tx:932d25640734da305b3dc990cc183a4022ef33b3e37e3aabfa5dd9bbfff51cb6 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:84250000 Height:235205 Tx:932d25640734da305b3dc990cc183a4022ef33b3e37e3aabfa5dd9bbfff51cb6 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c0e2b41065bcb4d788b1a2614a1dd0d0d9645412c01148ef90a4761250e79dab N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:305 scanner.btc: Counted deposits from block hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207 scannedDeposits=23
[2017-11-01T04:47:50Z] INFO btc.go:179 scanner.btc: Scanned deposits from block bestHeight=235214 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:0} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207 scannedDeposits=23 totalScannedDeposits=102
[2017-11-01T04:47:50Z] DEBUG btc.go:358 scanner.btc: Waiting for the next block blockHash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" blockHeight=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c0e2b41065bcb4d788b1a2614a1dd0d0d9645412c01148ef90a4761250e79dab N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:852696 Height:235205 Tx:fe96654b004d808350de6ed6b97ab954430f8f1ad1ccde4dd766978ce833d929 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:1902696 Height:235205 Tx:1c200c69b9b16d5b36021c62c3d5ddffba8499a08fd135af4eacc312493327a3 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:8f6ed1882559d4a66ffe8a0c84f81ca185890935b70ad71580516270762fa7d7 N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:852696 Height:235205 Tx:fe96654b004d808350de6ed6b97ab954430f8f1ad1ccde4dd766978ce833d929 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:8a3395a99189f5d750bc3e7732b53098905b69f6eeb288687f5395f30611b10c N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:8f6ed1882559d4a66ffe8a0c84f81ca185890935b70ad71580516270762fa7d7 N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:85300000 Height:235205 Tx:a8c8fcbd9ced75d9e1a0edc99f7cd02cb6016f805fb3d8d77232dc389103c9ac N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:8a3395a99189f5d750bc3e7732b53098905b69f6eeb288687f5395f30611b10c N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:83200000 Height:235205 Tx:33e84093ecc6ac707ecd3870ea8716d0fa2e0d4f95299cfb3142cd5ac6e22b71 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:85300000 Height:235205 Tx:a8c8fcbd9ced75d9e1a0edc99f7cd02cb6016f805fb3d8d77232dc389103c9ac N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:addb4f5046726039314105b8eb7399e7ae3191b5c6e88d94d3cb5df16f17d0ae N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:83200000 Height:235205 Tx:33e84093ecc6ac707ecd3870ea8716d0fa2e0d4f95299cfb3142cd5ac6e22b71 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:82050000 Height:235205 Tx:3d84467ae605fa53d421acf1c4b9f0aebe755ff205d3d0617e1e5d1f05e534e1 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="000000000000003c332218db768c18ef446f955f4637747badd1632c050d48c4" height=235208
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:addb4f5046726039314105b8eb7399e7ae3191b5c6e88d94d3cb5df16f17d0ae N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:84250000 Height:235205 Tx:932d25640734da305b3dc990cc183a4022ef33b3e37e3aabfa5dd9bbfff51cb6 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:82050000 Height:235205 Tx:3d84467ae605fa53d421acf1c4b9f0aebe755ff205d3d0617e1e5d1f05e534e1 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:e4b4fb39e52efeb16223ac79794708a8f6e3dfe99053bdf5a7e8b4e6a42e0ca6 N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:305 scanner.btc: Counted deposits from block hash="000000000000003c332218db768c18ef446f955f4637747badd1632c050d48c4" height=235208 scannedDeposits=0
[2017-11-01T04:47:50Z] INFO btc.go:179 scanner.btc: Scanned deposits from block bestHeight=235214 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:0} hash="000000000000003c332218db768c18ef446f955f4637747badd1632c050d48c4" height=235208 scannedDeposits=0 totalScannedDeposits=102
[2017-11-01T04:47:50Z] DEBUG btc.go:358 scanner.btc: Waiting for the next block blockHash="000000000000003c332218db768c18ef446f955f4637747badd1632c050d48c4" blockHeight=235208
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] DEBUG btc.go:296 scanner.btc: Scanning block hash="000000000000016739b24632d80a3fb8d85b177ffbe130ad9d636f9e1de40d8c" height=235209
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:e4b4fb39e52efeb16223ac79794708a8f6e3dfe99053bdf5a7e8b4e6a42e0ca6 N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:03eaa315800a31edbe33cbd9b61e9147a96aa48c688e69a5d4595d2b4537f39a N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:84250000 Height:235205 Tx:932d25640734da305b3dc990cc183a4022ef33b3e37e3aabfa5dd9bbfff51cb6 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c0e2b41065bcb4d788b1a2614a1dd0d0d9645412c01148ef90a4761250e79dab N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:03eaa315800a31edbe33cbd9b61e9147a96aa48c688e69a5d4595d2b4537f39a N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:81000000 Height:235205 Tx:6bac487af445f17fc76b8cf5902693dc05f7ff817b9e6db50afa73afd18271e6 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:c0e2b41065bcb4d788b1a2614a1dd0d0d9645412c01148ef90a4761250e79dab N:0 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:852696 Height:235205 Tx:fe96654b004d808350de6ed6b97ab954430f8f1ad1ccde4dd766978ce833d929 N:1 Processed:false}
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:50Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:51Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:51Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:51Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:51Z] INFO btc.go:152 scanner.btc: Not enough confirmations, waiting bestHeight=235208 config={ScanPeriod:10ms DepositBufferSize:5 InitialScanHeight:235205 ConfirmationsRequired:2} hash="000000000000014e5217c81d6228a9274395a8bee3eb87277dd9e4315ee0f439" height=235207
[2017-11-01T04:47:51Z] INFO btc.go:216 scanner.btc: Closing BTC scanner
[2017-11-01T04:47:51Z] INFO btc.go:220 scanner.btc: Waiting for BTC scanner to stop
[2017-11-01T04:47:51Z] INFO btc.go:275 scanner.btc: Deposit is processed deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:81000000 Height:235205 Tx:6bac487af445f17fc76b8cf5902693dc05f7ff817b9e6db50afa73afd18271e6 N:1 Processed:false}
[2017-11-01T04:47:51Z] INFO btc.go:257 scanner.btc: Sending deposit to depositC deposit={CoinType:BTC Address:1LEkderht5M5yWj82M87bEd4XDBsczLkp9 Value:5430 Height:235205 Tx:a4d79bcc51cc34ab409b12833e94515a516b6340c049ccd78598b06674aef6a7 N:0 Processed:false}
panic: send on closed channel
goroutine 15 [running]:
github.com/skycoin/teller/src/scanner.(*BTCScanner).processDeposit(0xc4201d8150, 0x751826, 0x3, 0xc4203cc3c0, 0x22, 0x1536, 0x396c5, 0xc4203d4000, 0x40, 0x0, ...)
	/home/travis/gopath/src/github.com/skycoin/teller/src/scanner/btc.go:261 +0x34e
github.com/skycoin/teller/src/scanner.(*BTCScanner).Run.func3(0xc4201b4310, 0xc4201d8150)
	/home/travis/gopath/src/github.com/skycoin/teller/src/scanner/btc.go:197 +0x1e4
created by github.com/skycoin/teller/src/scanner.(*BTCScanner).Run
	/home/travis/gopath/src/github.com/skycoin/teller/src/scanner/btc.go:190 +0x5a0
FAIL	github.com/skycoin/teller/src/scanner	2.352s
ok  	github.com/skycoin/teller/src/sender	6.013s
ok  	github.com/skycoin/teller/src/teller	0.014s [no tests to run]
?   	github.com/skycoin/teller/src/util/dbutil	[no test files]
?   	github.com/skycoin/teller/src/util/httputil	[no test files]
ok  	github.com/skycoin/teller/src/util/logger	0.003s
ok  	github.com/skycoin/teller/src/util/mathutil	0.004s
?   	github.com/skycoin/teller/src/util/testutil	[no test files]

Scanning Bitcoin Wallet: command line

Make folder "scanning wallet" and put cmd folder in there and one folder per command for this


Write a command utility that does the following

1> Writes a JSON file with bitcoin addresses (see skycoin/cmd/address_gen/address_gen.go )

  • n is number of addresses to generate
  • -seed="password" for the seed

2> Function that for scanning bitcoin block for deposits to a map of addresses

(command line function takes in list of addresses, get a particular block from BCTD and outputs the transactions that are deposits to addresses in the list fed in)

See: #98

  • take in a bitcoin bitcoin block and a take in a map of addresses to watch
  • output any transactions which deposit to addresses we are watching

include

  • tx:ix (transaction hash, and index as string for output the transaction created)
  • the hash of the block
  • the hash of the parent block
  • the block height

3> For the JSON, foreach address in our json file, include

  • uint64 "min_scanned_block", the lowest block height we have scanned for deposits to that address for

  • uint64 "max_scanned_block", the highest block height we have scanned for deposits to that address for

  • string, "max_block_hash", the hash of the lowest block we have scanned for

  • a list of "Deposit Events" in JSON

  • min_scanned_block starts at zero

  • max_scanned block, starts at current block head or ?

Each deposit event must include

  • "tx:id" string transaction id/hash and index (the output index for the transaction)
  • hash of block for the transaction (and the index of the transaction in the block)
  • parent of block
  • block depth where transaction occurred

The array of deposit transactions must be sorted by the

  • blockheight
  • then by the transaction hash (if there are multiple deposit transaction with the same blockheight for a given index)

4> Create a command line argument that takes the JSON wallet and scans from block N to M, then updates the wallet JSON file by writing it back to disc.

  • add every bitcoin address in the wallet file to the map of watched addresses
  • scan every block from N to M, for deposits to addresses in the list of deposit addresses

IF block scanned is N and min_scan for an address is less than N

  • verify that if scanning returns no deposit transactions in that block, that the JSON file does not have any deposits transactions recorded with that block height (zero transactions for address)
  • verify that if scanning returns a transaction in that block, that the same tx:id does not appear else where in the array of recorded transactions with a different TX:ID pair
  • verify that if scanning returns a transaction in that block, that the same tx:id does not appear else where in the array of recorded transactions (in the JSON file) with a different TX:ID pair
  • verify that if scanning returns a transaction in that block, that the same tx:id does not appear else where in the array of recorded transactions (in the JSON file) with a different blockhash or blockheight
  • verify that if scanning returns a deposit transaction for an address in that block, and N < min_scan, that the transaction is already recorded in the JSON file (with the exact same tx:index, block_height and block hash value)

IF block scanned is N and min_scan for an address is equal to N+1

  • then if any new deposit transactions are detected, then add the deposits to the JSON file, in the list of deposit transactions for that address
  • then increment min_scan by one
  • then rescan the block again and make sure number of new/unknown transactions is zero
  • if N is one greater than max_scan, then increment max_scan
  • if N is not greater than min_scan, then do nothing

5> sorted ranges (for recording which blocks have been scanned)

"min_scan" and "max_scan" can be an array of structs.

  • a struct storing sorted ranges
  • merging ranges if they over lap
  • getting the lowest range and highest range

Array like
[[0,3], [5,8]]

  • means: we have scanned address from block 0 to 3, and from block 5 to 8
  • then if we scan block 4 , then it becomes [[0,8]] because [[0,4], [5,8]] we have scanned from 0 to 4 and from 5 to 8 so can merge ranges and means have scanned from [0,8]
  • the "4" is the gap. If number of ranges > 1, then we want function to get the first gap in the range
  • we want function for telling us if an address has been scanned for a particular range
  • we want function to update the ranges for a particular scan (we scanned 15, update ranges by incrementing any range that ends in 14).

Simplified Version:

We actually do not need an array of ranges. We actually only need 3 values (3 tuple)

The values are

[x,y,z]

  • x starts at zero (min_scan0 )
  • y starts at the block the address was added to the watch list (min_scan1)
  • z starts at Y is maximize block that we have scanned (max_scan)

If x is 0 and we scan block 1, we increment x to 1. If x is 3 and we scan 4, then we increment x. Once we have scanned from x to y then x will always equal y.

If Y is 5 and we have scanned block 6, then we increment y by one ONLY if the value of X has reached Y.

if Z is 7 and we scan block 8, then we increment Z to 8.

Always check

  • x <= y <= z
  • If we scan blocks and find new transactions that were not recorded and the block height is between Y and Z, then error (they should have been recorded already)
  • if we scan blocks and find new transactions and block height is between X and Y, then its ok/ no error (but we ignore them and do not add them unless, we are scanning block height X)

X - starts at lowest block and increments up
Y - starts at the block where the address was generated and increments up ONLY after X has reached Y
Z - starts at Y

Example:

  • head block is 10

  • we add address to watch list at block x

  • starting value is [0,8,8]

  • two new blocks are created (9 and 10)

  • we scan 9

  • value is now [0,8,9]

  • we scan 0,1,2, up to 8

  • value changes from [0,8,9] to [1,8,9] then [2,8,9] ... [8,8,9]

  • we scan ten. value goes to [8,8,10]

  • we scan 9 again, value goes to [9,9,10] (the second only increments if its equal to the first)

  • we scan 10, value goes to [10,10,10]

6>

Validation 1#

  • make sure that if we scan a block we have already scanned, that we do not find a deposit for an address that is not already recorded (this is a bug, because we should have recorded it the first time it was scanned), Otherwise log error

Validate 2#

  • make sure that if we have recorded a deposit for an address for block height N, that that the transaction appears when block N is scanned. (extract the deposits that have been recorded in the json file, for the block and check that when we scan the block that the transaction (tx:id, index, blockhash) is extracted from the block

7>

A. for all addresses, get the lowest x value that needs to be scanned and scan 1 block forward

B. for all address, get the lowest z value that needs to be scanned and scan one block forward

We keep scanning A, then B alternating until z=y=z for all the blocks.

Improve config loading

The config should be loadable from a json file.
The json file should be in the ~/.skycoin-teller directory
Command line options should be able to override some of the settings from the config file.
The config file location may also be specified from the command line

UI settings panel

After building the a UI for admin monitoring, add a settings panel to control things such as the exchange rate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.