{"action":"opened","issue":{"url":"https://api.github.com/repos/bcoin-org/bcoin/issues/419","repository_url":"https://api.github.com/repos/bcoin-org/bcoin","labels_url":"https://api.github.com/repos/bcoin-org/bcoin/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/bcoin-org/bcoin/issues/419/comments","events_url":"https://api.github.com/repos/bcoin-org/bcoin/issues/419/events","html_url":"https://github.com/bcoin-org/bcoin/issues/419","id":299696648,"number":419,"title":"Wallet socket : wallet confirmed event not working ?","user":{"login":"andrey-ushakov","id":12819691,"avatar_url":"https://avatars0.githubusercontent.com/u/12819691?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey-ushakov","html_url":"https://github.com/andrey-ushakov","followers_url":"https://api.github.com/users/andrey-ushakov/followers","following_url":"https://api.github.com/users/andrey-ushakov/following{/other_user}","gists_url":"https://api.github.com/users/andrey-ushakov/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-ushakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-ushakov/subscriptions","organizations_url":"https://api.github.com/users/andrey-ushakov/orgs","repos_url":"https://api.github.com/users/andrey-ushakov/repos","events_url":"https://api.github.com/users/andrey-ushakov/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-ushakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T12:31:27Z","updated_at":"2018-02-23T12:31:27Z","closed_at":null,"author_association":"NONE","body":"I'm trying to handle 2 event types : \"**wallet tx**\" & \"**wallet confirmed**\".\r\n\r\n\"**wallet tx**\" event seems to work perfectly, so far I receive all the transaction events.\r\n\"**wallet confirmed**\" event fires only _ONCE_ per transaction, I receive this event only after _first_ transaction confirmation.\r\n\r\nIs it a normal behaviour? How can I receive all the tx confirmations?\r\n\r\n\r\nCode:\r\n\r\n```\r\nawait bwallet.open();\r\n\r\n  bwallet.on('tx', (tx) => {\r\n    console.log('tx', tx.hash);\r\n  });\r\n\r\n  bwallet.on('confirmed', (tx) => {\r\n    console.log('confirmed', tx.hash, tx.confirmations);\r\n  });\r\n```\r\n\r\nPS\r\nI use testnet network. \r\nI tried to use socket.io-client (with manual manual emitting auth & join events), the result is _exactly the same_."}}
{"actor":{"display_login":"andrey-ushakov"}}