{"action":"created","issue":{"url":"https://api.github.com/repos/PaycoinFoundation/paycoin/issues/279","labels_url":"https://api.github.com/repos/PaycoinFoundation/paycoin/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/PaycoinFoundation/paycoin/issues/279/comments","events_url":"https://api.github.com/repos/PaycoinFoundation/paycoin/issues/279/events","html_url":"https://github.com/PaycoinFoundation/paycoin/pull/279","id":112229480,"number":279,"title":"Refactor transactions/accounting times","user":{"login":"IngCr3at1on","id":922158,"avatar_url":"https://avatars.githubusercontent.com/u/922158?v=3","gravatar_id":"","url":"https://api.github.com/users/IngCr3at1on","html_url":"https://github.com/IngCr3at1on","followers_url":"https://api.github.com/users/IngCr3at1on/followers","following_url":"https://api.github.com/users/IngCr3at1on/following{/other_user}","gists_url":"https://api.github.com/users/IngCr3at1on/gists{/gist_id}","starred_url":"https://api.github.com/users/IngCr3at1on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IngCr3at1on/subscriptions","organizations_url":"https://api.github.com/users/IngCr3at1on/orgs","repos_url":"https://api.github.com/users/IngCr3at1on/repos","events_url":"https://api.github.com/users/IngCr3at1on/events{/privacy}","received_events_url":"https://api.github.com/users/IngCr3at1on/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PaycoinFoundation/paycoin/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/PaycoinFoundation/paycoin/labels/Wallet","name":"Wallet","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-19T20:46:22Z","updated_at":"2015-12-08T23:23:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PaycoinFoundation/paycoin/pulls/279","html_url":"https://github.com/PaycoinFoundation/paycoin/pull/279","diff_url":"https://github.com/PaycoinFoundation/paycoin/pull/279.diff","patch_url":"https://github.com/PaycoinFoundation/paycoin/pull/279.patch"},"body":"Status: Tested and seems to work\r\n\r\nGuarantee listtransactions order consistency by storing a position for each entry\r\nAdd \"blocktime\" and (for wallet transactions) \"timereceived\" to transaction Objects\r\nImplement \"smart\" times according to the following logic:\r\nIf sending a transaction, assign its timestamp to the current time.\r\nIf receiving a transaction outside a block, assign its timestamp to the current time.\r\nIf receiving a block with a future timestamp, assign all its (not already known) transactions' timestamps to the current time.\r\nIf receiving a block with a past timestamp, before the most recent known transaction (that we care about), assign all its (not already known) transactions' timestamps to the same timestamp as that most-recent-known transaction.\r\nIf receiving a block with a past timestamp, but after the most recent known transaction, assign all its (not already known) transactions' timestamps to the block time."},"comment":{"url":"https://api.github.com/repos/PaycoinFoundation/paycoin/issues/comments/163054521","html_url":"https://github.com/PaycoinFoundation/paycoin/pull/279#issuecomment-163054521","issue_url":"https://api.github.com/repos/PaycoinFoundation/paycoin/issues/279","id":163054521,"user":{"login":"IngCr3at1on","id":922158,"avatar_url":"https://avatars.githubusercontent.com/u/922158?v=3","gravatar_id":"","url":"https://api.github.com/users/IngCr3at1on","html_url":"https://github.com/IngCr3at1on","followers_url":"https://api.github.com/users/IngCr3at1on/followers","following_url":"https://api.github.com/users/IngCr3at1on/following{/other_user}","gists_url":"https://api.github.com/users/IngCr3at1on/gists{/gist_id}","starred_url":"https://api.github.com/users/IngCr3at1on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IngCr3at1on/subscriptions","organizations_url":"https://api.github.com/users/IngCr3at1on/orgs","repos_url":"https://api.github.com/users/IngCr3at1on/repos","events_url":"https://api.github.com/users/IngCr3at1on/events{/privacy}","received_events_url":"https://api.github.com/users/IngCr3at1on/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T23:23:55Z","updated_at":"2015-12-08T23:23:55Z","body":"This has been rebased over #407 and subsequently master. Will be adding some patches to it as well."}}