These are chat archives for peatio/peatio

13th
Sep 2017
sadflask
@sadflask
Sep 13 02:36
Anyone here able to help with setting up SMTP?
Justin Faler
@Jfaler
Sep 13 05:14
@sadflask Yeah
What seems to be the problem?
scatterp2
@scatterp2
Sep 13 05:42
good morning
MaffeProg you must reinstall it seems something happened during install a missed step ubuntu 14 ?
Justin Faler
@Jfaler
Sep 13 05:44
@scatterp2 I get errors with pusher when I change it to my own credentials
Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Did you forget to specify the cluster when creating the Pusher instance?
scatterp2
@scatterp2
Sep 13 05:46
intresting
ah yes of course
Justin Faler
@Jfaler
Sep 13 05:46
It is missing an option or is hard-coded
scatterp2
@scatterp2
Sep 13 05:46
justin its a missing point on the readme one moment
Justin Faler
@Jfaler
Sep 13 05:49
@scatterp2 It's not on the readme
scatterp2
@scatterp2
Sep 13 05:49
yeah thats the point :)
i was looking just now at 601 to make sure it was not the same issue
so when you create your pusher key select US
Justin Faler
@Jfaler
Sep 13 05:50
My key is US
scatterp2
@scatterp2
Sep 13 05:51
because US (west) is the default cluster for pusher and if you do not specify a cluster in your config then it defaults to that
Justin Faler
@Jfaler
Sep 13 05:51
cluster = "us2"
scatterp2
@scatterp2
Sep 13 05:51
uh you put that in the config ?
Justin Faler
@Jfaler
Sep 13 05:52
Nope
  PUSHER_APP: 394264
  PUSHER_KEY: xxxxxxxxxxxxxxxxxxxxxx
  PUSHER_SECRET: xxxxxxxxxxxxxxxxxxxxxx
  PUSHER_HOST: api.pusherapp.com
  PUSHER_PORT: 80
  PUSHER_WS_PORT: 80
  PUSHER_WSS_PORT: 443
  PUSHER_ENCRYPTED: true
No option exist for cluster in Config?
scatterp2
@scatterp2
Sep 13 05:54
ok thats correct for the pusher config
one mmoment
Justin Faler
@Jfaler
Sep 13 05:57
I also don't see an option for US(west) in pusher? I clicked on create your app and the only other cluster available is mt1 (US east Coast)
scatterp2
@scatterp2
Sep 13 05:57
checking this now
Justin Faler
@Jfaler
Sep 13 05:58
@scatterp2 Here is my project http://bitlits.com
I've already added a few coins and fixed some bugs...
I also have a bug in admin panel where nothing is showing in the "withdraws" drop down menu
scatterp2
@scatterp2
Sep 13 06:02
yes mt1 is the one i just checked it
thats what i had to use
takeing a look at bitlits.com :)
nice
you should test if you have the bugs mentioned in #598
scatterp2
@scatterp2
Sep 13 06:09
jfaler show me your bitcoin.conf with out the password
and show me your currencys.yml
Justin Faler
@Jfaler
Sep 13 06:10
@scatterp2 I can get bitcoin working and generating a QR code and address but I couldn't get the other coins to connect
scatterp2
@scatterp2
Sep 13 06:10
ok let me see those 2 files (with out passwords
Justin Faler
@Jfaler
Sep 13 06:13
Blockr.io just shutdown on the 4th and was sold to Coinbase.com
scatterp2
@scatterp2
Sep 13 06:14
intresting
ok and bitcoin.conf
Justin Faler
@Jfaler
Sep 13 06:15
bitcoin connects and works fine
The problem is with the other coins
@scatterp2 You're right about the pusher settings
It looks like the cluster was hard-coded somewhere
scatterp2
@scatterp2
Sep 13 06:17
for the hotwallet problem i see on line 2 E, [2017-09-13T01:05:52.133755 #10104] ERROR -- : Connection refused - connect(2) for "127.0.0.1" port 8332 (Errno::ECONNREFUSED)
your bitcoin.conf if you followed the instructions should be set to listen on 8332
and the error is ECONNREFUSED which basically means nothing is listening there
Justin Faler
@Jfaler
Sep 13 06:18
Yeah I just now restarted the bitcoind daemon
Yeah I know
scatterp2
@scatterp2
Sep 13 06:18
that helps too :)
Justin Faler
@Jfaler
Sep 13 06:18
The problem is with litecoin
and ethereum
scatterp2
@scatterp2
Sep 13 06:19
ok do this
netstat -an|grep 8332
cat yourlogfile.log
and paste the result to the issue
#601
Justin Faler
@Jfaler
Sep 13 06:20
Just checked and now it's synced and generating addresses and qr codes
scatterp2
@scatterp2
Sep 13 06:20
working ?
Justin Faler
@Jfaler
Sep 13 06:20
Wallet is working and synced with the exchange
scatterp2
@scatterp2
Sep 13 06:20
nice :)
Justin Faler
@Jfaler
Sep 13 06:20
It's not the problem
I noticed that blockr.io is hard-coded somewhere
scatterp2
@scatterp2
Sep 13 06:21
oh
seems unlikely let me check
really thats intresting ..
Justin Faler
@Jfaler
Sep 13 06:22
hot_wallets.rb was working until I added ethereum
scatterp2
@scatterp2
Sep 13 06:22
anyway ... yes you are correct its hardcoded in to the proof of stake code one sec
lib/task/solvency.rake line 44
Justin Faler
@Jfaler
Sep 13 06:36
@scatterp2 Funny the service stopped working on the 4th
scatterp2
@scatterp2
Sep 13 06:36
which service
Justin Faler
@Jfaler
Sep 13 06:36
blockr.io
scatterp2
@scatterp2
Sep 13 06:36
oh
how did you find that exchange ?
its not listed as a fork
Justin Faler
@Jfaler
Sep 13 06:38
Matching code
scatterp2
@scatterp2
Sep 13 06:38
oh
Justin Faler
@Jfaler
Sep 13 06:39
So what blockchain do you think is the best replacement?
scatterp2
@scatterp2
Sep 13 06:41
i personally consider the solvency code redundant
I work in the finance industry with exchanges and hedge funds and i can tell you know one is showing there bank balance lol
Justin Faler
@Jfaler
Sep 13 06:42
lmao
scatterp2
@scatterp2
Sep 13 06:43
can you imagine goldman sachs calling you about investing money and moving the discussion to checking there solvency situation
Justin Faler
@Jfaler
Sep 13 06:43
However he doesn't have ethereum implemented
scatterp2
@scatterp2
Sep 13 06:44
thats not a big problem really
i mean deposit/withdraw with eth is ok but everyone uses visa
Justin Faler
@Jfaler
Sep 13 06:46
You need to have a FINCEN license here in the US
scatterp2
@scatterp2
Sep 13 06:46
yeah you have one ?
Justin Faler
@Jfaler
Sep 13 06:46
Haa no
It's like super expensive
scatterp2
@scatterp2
Sep 13 06:47
danmit we could of made some cash :D
Justin Faler
@Jfaler
Sep 13 06:48
I just checked your github issue
Did you pair btc with eth?
scatterp2
@scatterp2
Sep 13 06:51
i havent pushed yet
i will later today
Justin Faler
@Jfaler
Sep 13 06:52
Do you have a bug where the drop down menu in the admin panel is broken?
scatterp2
@scatterp2
Sep 13 06:52
yeah its fixed
Justin Faler
@Jfaler
Sep 13 06:52
I couldn't withdraw btc and had to resort to using bitcoin-cli
What file needed to be fixed?
scatterp2
@scatterp2
Sep 13 06:53
oh in the admin panel
Justin Faler
@Jfaler
Sep 13 06:53
yeawh
scatterp2
@scatterp2
Sep 13 06:53
sorry was thinking of market panel
Justin Faler
@Jfaler
Sep 13 06:53
oh no
wyj1226
@wyj1226
Sep 13 06:53
Someone had put the demo after the run, the trading floor error´╝č
scatterp2
@scatterp2
Sep 13 06:53
wyj1226 that makes no sense ?
Justin Faler
@Jfaler
Sep 13 06:56
scatterp2
@scatterp2
Sep 13 06:56
justin you are running the maxsmile code?
Justin Faler
@Jfaler
Sep 13 06:58
It's a mix of mine, his, and muhammednagy
scatterp2
@scatterp2
Sep 13 06:59
did you finish importing all of his and nagys changes already ?
Justin Faler
@Jfaler
Sep 13 06:59
Pretty much but they both took different approaches in solving things
All branches are missing things because people don't want to share
aidanv
@aidanv
Sep 13 07:02
@Jfaler you running 16.04?
scatterp2
@scatterp2
Sep 13 07:02
yeah for me its quite amusing to watch the end game is they have an exchange with no users i dont think any one here has an actual marketing or sales plan
Justin Faler
@Jfaler
Sep 13 07:02
@aidanv 14.04
@scatterp2 Not true
The best exchange I have ever used was mcxnow.com
scatterp2
@scatterp2
Sep 13 07:06
i dunno i have an experienced call center with 100 guys with telephones a crm pbx and 200 million leads
:)
Justin Faler
@Jfaler
Sep 13 07:06
I've seen ton of exchanges come and go
The best was mcxnow
It was written in C++
scatterp2
@scatterp2
Sep 13 07:07
i plan to upgrade to metatrader personally but its 100000 usd licence
Justin Faler
@Jfaler
Sep 13 07:08
It was all done by just one guy
Ruby on rails framework is slow
scatterp2
@scatterp2
Sep 13 07:12
wyj1226 please copy here the error from console
aidanv
@aidanv
Sep 13 07:13
anyone tested peatio tps?
Justin Faler
@Jfaler
Sep 13 07:13
I tried tail -f log/production.log
It didn't spit out any errors for the drop down menu
scatterp2
@scatterp2
Sep 13 07:14
me i would just code right over it ..
i mean redirect the page to mynewpage (a contact form)
and if a user requests a withdrawal
i would call them and convince them not to withdraw if that failed then manually send the money
Justin Faler
@Jfaler
Sep 13 07:15
lol
scatterp2
@scatterp2
Sep 13 07:15
automated withdrawals are costly
mostly when a user wants to withdraw its because he is unsatisfied some how
Justin Faler
@Jfaler
Sep 13 07:17
I have the litecoind daemon running and still not getting a connection
scatterp2
@scatterp2
Sep 13 07:17
paste the error here
Justin Faler
@Jfaler
Sep 13 07:18
It shows as working but it's not
scatterp2
@scatterp2
Sep 13 07:19
well sniff the input and output and verify it is easiest way
Justin Faler
@Jfaler
Sep 13 07:19
I think it has to do with the currency.yml file
I need to find a suitable replacement
scatterp2
@scatterp2
Sep 13 07:21
yeah also recode the passer
is your git with the merged code public ? or accessible some how ?
Justin Faler
@Jfaler
Sep 13 07:23
It's not unfortunately
I've been slowly updating my repository
scatterp2
@scatterp2
Sep 13 07:25
somewhere there should be a passing system for blockr.io it will need rewriteing
Justin Faler
@Jfaler
Sep 13 07:25
Darn it's like 12:25 am in the morning here in California
I wonder if it will need to be done for every coin
scatterp2
@scatterp2
Sep 13 07:26
well the thing is
why do you need deposit and withdrawal for each
you can just add them as a pair theoretically ...
Justin Faler
@Jfaler
Sep 13 07:27
Oh that's true
scatterp2
@scatterp2
Sep 13 07:35
if you can accept eth btc visa mastercard and bank wire i think its more than enough
Justin Faler
@Jfaler
Sep 13 07:36
I still have a withdraw bug :/
scatterp2
@scatterp2
Sep 13 07:37
its difficult to help with that because your code base seems wildly different to mine
hrm
let me check something
on there i just have "no data" on my system
i mean mine drops down ...
what does yours do exactly?
Justin Faler
@Jfaler
Sep 13 07:39
It's just a little stub https://imgur.com/a/CoY6R
scatterp2
@scatterp2
Sep 13 07:40
yeah thats something in your code base in mine it works..
I would need to see what you have
Justin Faler
@Jfaler
Sep 13 07:40
/home/deploy/peatio/current/app/views/admin/deposits is where I added the extra folders and files for new coins
scatterp2
@scatterp2
Sep 13 07:43
can you right click on the withdraw window and inspect with chrome and send me screenshot
scatterp2
@scatterp2
Sep 13 07:52
hmm thinking
Justin Faler
@Jfaler
Sep 13 07:55
I just checked and still get the same error log for the hot_wallets.rb
scatterp2
@scatterp2
Sep 13 07:57
i have to head to my office now but i will check this through out the day ..
Justin Faler
@Jfaler
Sep 13 07:58
For sure
ttyl
adewumi hammed
@kovic08_twitter
Sep 13 08:25
who know about https://txbits.org ?
MaffeProg
@MaffeProg
Sep 13 08:47
Can someone help
phamngocthaison
@phamngocthaison
Sep 13 10:18
How do I add BTC asset to my site
MaffeProg
@MaffeProg
Sep 13 10:18
Anyone issues with pusher? Everything works fine by me only he doesn't reall time update
scatterp2
@scatterp2
Sep 13 12:32
phamngocthaison the site comes with btc by default ?
maffeprog good morning can you do apt-get install pastebinit
history | more
check there is no private data there like passwords
then
history|pastebinit
and give me the code
phamngocthaison
@phamngocthaison
Sep 13 12:34
yea... but everytime I try to withdraw it's appear error "We're sorry, but something went wrong."
I don't know if I did anything wrong with my config
scatterp2
@scatterp2
Sep 13 12:35
if you have btc and you got that far looks like you got everything right
btc withdraw doesnt work you have to do it manually using bitcoind
and mysql -uuser -p
hi maffeprog
phamngocthaison
@phamngocthaison
Sep 13 12:36
hm ... so what I suppose to do if user want to withdraw
scatterp2
@scatterp2
Sep 13 12:37
well this project is under development still do you know how to program ?
phamngocthaison
@phamngocthaison
Sep 13 12:38
yes, I understand :smile: I will continue develop it :smile:
but one final question
I use bitcoin testnet when I install the project
scatterp2
@scatterp2
Sep 13 12:38
check log/production.log for more information about what went wrong
phamngocthaison
@phamngocthaison
Sep 13 12:38
how can I switch to real bitcoin
scatterp2
@scatterp2
Sep 13 12:39
not sure i would just reinstall
never tried to switch before
phamngocthaison
@phamngocthaison
Sep 13 12:39
yea, thanks a lot
scatterp2
@scatterp2
Sep 13 12:44
i also recommend creating an install script (you might upload it also for others)
then its a lot faster to work..
MaffeProg
@MaffeProg
Sep 13 12:45
I already fixed it
phamngocthaison
@phamngocthaison
Sep 13 12:45
yea. before I just follow the instructions on the project :D
luckily it worked fine
MaffeProg
@MaffeProg
Sep 13 12:47
Is production faster than development?
scatterp2
@scatterp2
Sep 13 12:49
not sure it would make sense
MaffeProg
@MaffeProg
Sep 13 12:50
I dont know what is the difference exactly?
scatterp2
@scatterp2
Sep 13 12:59
less debuging code
so it runs faster
MaffeProg
@MaffeProg
Sep 13 16:44
Do you already know more about trading other currencies matching bug?
I found out its somethin with the api
only btccny market works in the api but other currencies not
scatterp2
@scatterp2
Sep 13 16:54
not yet no
i suspect a config error but its hard to trace as theres no error message
oh i pushed my code today also
scatterp2
@scatterp2
Sep 13 17:00
https://github.com/scatterp2/peatio all my changes are here
MaffeProg
@MaffeProg
Sep 13 17:30
Lets see
I'm kind of new to the code but I want to develop it further
MaffeProg
@MaffeProg
Sep 13 17:57
Why a config error? I guess its or something what is missing. But its absolutly something with the api because the apu doesn't get information and if it doesn't get information it can't progress trades or fill the orderbook in the UI
scatterp2
@scatterp2
Sep 13 17:58
not sure currently looking at an error message related to it
it says error the "is not in the list"
trying to work out which file is the list :)
MaffeProg
@MaffeProg
Sep 13 18:07
In which error file did this appeare ?
scatterp2
@scatterp2
Sep 13 18:08
deployment.log
i think it was
MaffeProg
@MaffeProg
Sep 13 18:08
Hmm I will search for it
MaffeProg
@MaffeProg
Sep 13 19:52
I heard someone having also a problem with a redirect?
I see config not set
MaffeProg
@MaffeProg
Sep 13 20:33
@scatterp2 are you here?
MaffeProg
@MaffeProg
Sep 13 21:08
Problem solved. When adding new markets you need to stop the daemons than start it again and all bugs gone
sadflask
@sadflask
Sep 13 22:27
so i'm trying to develop on a server via ssh. However the email for validation is not sending, i assume because of lack of SMTP setup in config/application.yml. So i have signed up for a free SMTP account, which shows me the settings SMTP PORT: 2525, SMTP server: mail.smtp2go.com, and a UName/PWord combo. I can figure out where most of these go in the file but what goes under domain?
MaffeProg
@MaffeProg
Sep 13 22:41
I guess smtp2go.com
But I have no idea I suggest to install smtp on your own
But thats a shitload of work with a lot of trouble
I did installed it one time so far but it took one week to get everything fine
sadflask
@sadflask
Sep 13 22:44
okay, but how can i proceed with development without a verified account?
MaffeProg
@MaffeProg
Sep 13 22:45
You mean verified account in peatio?
sadflask
@sadflask
Sep 13 22:45
yeah
MaffeProg
@MaffeProg
Sep 13 22:45
Can you view database?
sadflask
@sadflask
Sep 13 22:45
i assume i can from command line yeah
MaffeProg
@MaffeProg
Sep 13 22:46
I have phpmyadmin installed its really easy to change everything in the database you can add there verified accounts
sadflask
@sadflask
Sep 13 22:46
Okay i'll try that, thanks
aidanv
@aidanv
Sep 13 23:02
anyone got errors with bunble?
Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 6 column 3
when trying to run bundle exec rake db:setup
aidanv
@aidanv
Sep 13 23:17
solved it