{"action":"created","issue":{"url":"https://api.github.com/repos/ExchangeUnion/xud/issues/310","repository_url":"https://api.github.com/repos/ExchangeUnion/xud","labels_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/310/comments","events_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/310/events","html_url":"https://github.com/ExchangeUnion/xud/issues/310","id":348944707,"node_id":"MDU6SXNzdWUzNDg5NDQ3MDc=","number":310,"title":"TypeError: Cannot read property 'quantity' of undefined","user":{"login":"liujiafeng622","id":4021907,"node_id":"MDQ6VXNlcjQwMjE5MDc=","avatar_url":"https://avatars2.githubusercontent.com/u/4021907?v=4","gravatar_id":"","url":"https://api.github.com/users/liujiafeng622","html_url":"https://github.com/liujiafeng622","followers_url":"https://api.github.com/users/liujiafeng622/followers","following_url":"https://api.github.com/users/liujiafeng622/following{/other_user}","gists_url":"https://api.github.com/users/liujiafeng622/gists{/gist_id}","starred_url":"https://api.github.com/users/liujiafeng622/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liujiafeng622/subscriptions","organizations_url":"https://api.github.com/users/liujiafeng622/orgs","repos_url":"https://api.github.com/users/liujiafeng622/repos","events_url":"https://api.github.com/users/liujiafeng622/events{/privacy}","received_events_url":"https://api.github.com/users/liujiafeng622/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-09T01:16:36Z","updated_at":"2018-08-09T18:58:00Z","closed_at":null,"author_association":"NONE","body":"node版本：v8.11.2\r\n\r\n1、我首先添加了一个订单：order added: {\"price\":10.22,\"quantity\":5.9,\"pairId\":\"BTC/LTC\",\"peerId\":\"\",\"id\":\"8324aec0-9b6d-11e8-a143-d981a9d556cc\",\"localId\":\"\",\"createdAt\":1533775528876,\"invoice\":\"\"}\r\n2、我又添加了了一个订单\r\n3、交易引擎match了两个订单：order match: {\"maker\":{\"price\":10.22,\"quantity\":5.9,\"pairId\":\"BTC/LTC\",\"peerId\":\"\",\"id\":\"8324aec0-9b6d-11e8-a143-d981a9d556cc\",\"localId\":\"\",\"createdAt\":1533775528876,\"invoice\":\"\"},\"taker\":{\"price\":10.22,\"quantity\":-5.9,\"pairId\":\"BTC/LTC\",\"peerId\":\"\",\"id\":\"4aad7670-9b6e-11e8-a143-d981a9d556cc\",\"localId\":\"1233\",\"createdAt\":1533775863639,\"invoice\":\"\"}}\r\n4、在match的时候，交易引擎出错了\r\n\r\n2018-8-8 20:51:03 [ORDERBOOK] debug: order match: {\"maker\":{\"price\":10.22,\"quantity\":5.9,\"pairId\":\"BTC/LTC\",\"peerId\":\"\",\"id\":\"8324aec0-9b6d-11e8-a143-d981a9d556cc\",\"localId\":\"\",\"createdAt\":1533775528876,\"invoice\":\"\"},\"taker\":{\"price\":10.22,\"quantity\":-5.9,\"pairId\":\"BTC/LTC\",\"peerId\":\"\",\"id\":\"4aad7670-9b6e-11e8-a143-d981a9d556cc\",\"localId\":\"1233\",\"createdAt\":1533775863639,\"invoice\":\"\"}}\r\n2018-8-8 20:51:03 [RPC] error: TypeError: Cannot read property 'quantity' of undefined\r\n    at OrderBook.updateOrderQuantity (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/orderbook/OrderBook.js:182:62)\r\n    at matches.forEach (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/orderbook/OrderBook.js:152:26)\r\n    at Array.forEach (<anonymous>)\r\n    at OrderBook.addOwnOrder (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/orderbook/OrderBook.js:150:25)\r\n    at OrderBook.addLimitOrder (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/orderbook/OrderBook.js:95:25)\r\n    at Service.<anonymous> (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/service/Service.js:132:53)\r\n    at Generator.next (<anonymous>)\r\n    at /home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/service/Service.js:7:71\r\n    at new Promise (<anonymous>)\r\n    at __awaiter (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/service/Service.js:3:12)\r\n    at Service.placeOrder (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/service/Service.js:129:38)\r\n    at GrpcService.<anonymous> (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/grpc/GrpcService.js:38:43)\r\n    at Generator.next (<anonymous>)\r\n    at /home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/grpc/GrpcService.js:7:71\r\n    at new Promise (<anonymous>)\r\n    at __awaiter (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/grpc/GrpcService.js:3:12)\r\n    at GrpcService.unaryCall (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/grpc/GrpcService.js:36:61)\r\n    at GrpcService.<anonymous> (/home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/grpc/GrpcService.js:84:18)\r\n    at Generator.next (<anonymous>)\r\n    at /home/stephen/Desktop/xud-1.0.0-prealpha.1/dist/grp"},"comment":{"url":"https://api.github.com/repos/ExchangeUnion/xud/issues/comments/411861583","html_url":"https://github.com/ExchangeUnion/xud/issues/310#issuecomment-411861583","issue_url":"https://api.github.com/repos/ExchangeUnion/xud/issues/310","id":411861583,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTg2MTU4Mw==","user":{"login":"kilrau","id":19181985,"node_id":"MDQ6VXNlcjE5MTgxOTg1","avatar_url":"https://avatars0.githubusercontent.com/u/19181985?v=4","gravatar_id":"","url":"https://api.github.com/users/kilrau","html_url":"https://github.com/kilrau","followers_url":"https://api.github.com/users/kilrau/followers","following_url":"https://api.github.com/users/kilrau/following{/other_user}","gists_url":"https://api.github.com/users/kilrau/gists{/gist_id}","starred_url":"https://api.github.com/users/kilrau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilrau/subscriptions","organizations_url":"https://api.github.com/users/kilrau/orgs","repos_url":"https://api.github.com/users/kilrau/repos","events_url":"https://api.github.com/users/kilrau/events{/privacy}","received_events_url":"https://api.github.com/users/kilrau/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T18:58:00Z","updated_at":"2018-08-09T18:58:00Z","author_association":"CONTRIBUTOR","body":"Is this fixed for you on latest `master`? @liujiafeng622 "}}
{"actor":{"display_login":"kilrau"}}