skycoin / teller Goto Github PK
View Code? Open in Web Editor NEWSkycoin exchange service
Skycoin exchange service
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.
They do not need to be the same database file, which makes them share locks. The advantage of one file is that all the data is related, cannot mix up two different pairs of files.
This is needed to do an end to end test without real skycoin
Logrus:
https://github.com/sirupsen/logrus
Might also use this for formatting the log lines:
https://github.com/x-cray/logrus-prefixed-formatter
Logrus will output logs in "logfmt" format, which can be parsed with this package:
https://godoc.org/github.com/kr/logfmt
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.
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).
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"
Need a configuration option to specify how many block confirmations to wait before accepting a deposit. Currently, no confirmations are waited for, a block is assumed valid as soon as it is scanned.
Cache added before performance measurement, will be source of bugs/maintenance burden. Remove cache layer until bolt performance measured and optimized
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
https://github.com/coreos/bbolt is the active fork of bolt
When no tty is attached, logrus prints in logfmt format, but it doesn't use %+v for printing structs, so not enough information is shown.
Information to expose through monitoring API:
The wallet could benefit from the following endpoints:
【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
Need to use fixed-point decimals for calculations e.g. converting btc to sky
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
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
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
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 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.
In config Verify
, check that the sky_exchanger.wallet
file is valid on startup.
The wallet file should be valid json and have at least one entry in "entries"
. All entries in "entries"
should have a valid address, public_key and secret_key.
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.
Include instructions for:
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"
)Remove @skycoin/config
dependency, config should be local to the repo.
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)
}
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>To support both Electron and the browser version of the wallet, I need CORS exception rules for:
origin: http://127.0.0.1:6420
methods: GET, POST, OPTION
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:
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.
Exchanger
Exchanger
writes to this channel when it sends coinsThere 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.
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.
Should display information about the teller status
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]
btcjson responses send btc values as floats in json, we need to use UseNumber()
from go package json to unmarshal into intermediate json.Number
type to avoid floating point precision issues
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 )
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
include
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
The array of deposit transactions must be sorted by the
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.
IF block scanned is N and min_scan for an address is less than N
IF block scanned is N and min_scan for an address is equal to N+1
5> sorted ranges (for recording which blocks have been scanned)
"min_scan" and "max_scan" can be an array of structs.
Array like
[[0,3], [5,8]]
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]
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 - 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#
Validate 2#
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.
The code assumes only btc deposits, need to design it support arbitrary number of coin deposit types
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
When sending the SKY, record the amount of SKY sent and the BTC/SKY rate that it was calculated at, to exchange.DepositInfoBkt
(which contains exchange.DepositInfo
structs)
Move the dependencies into this repo and recompile dist
After building the a UI for admin monitoring, add a settings panel to control things such as the exchange rate
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.