Open jdogresorg opened 5 years ago
It seems that the "Deadline" field is being completely ignored in bets and the same value is always being sent for 'deadline'.
Screenshot of 10/29 date entered when trying to place bet
API request to Counterparty passes wrong date/unixtime
Screenshot of 10/30 date entered when trying to place bet
API request to Counterparty passes wrong date/unixtime... same deadline as previous request
I think I found an issue with counterwallet betting and the bet resolution date parsing.
I created a broadcast/feed which expired in 1 hour, and then tried to bet on that feed in counterwallet. The betting information came up, so counterwallet is correctly detecting that the feed can still accept bets. However, the resolution date that is displayed is actually in the past, and trying to place bets on the feed results in errors about the deadline already being passed.
Tx shows broadcast date/deadline of 1539889200 (2018-10-18T19:00:00Z)... in the future https://testnet.xchain.io/tx/21866![image](https://user-images.githubusercontent.com/376028/47176560-bf544d80-d2ca-11e8-8b6a-57fe2b825534.png)
Counterwallet shows deadline of 2018/10/17 09:00:00 PM -07:00... which is in the past.![image](https://user-images.githubusercontent.com/376028/47176575-cb400f80-d2ca-11e8-8520-d4af9c50f74c.png)
Trying to bet on the feed passes a deadline of 1539835200 to create_bet.. resulting in an API error![image](https://user-images.githubusercontent.com/376028/47176585-d2671d80-d2ca-11e8-9636-e85d3b37f4b7.png)