{"action":"created","issue":{"url":"https://api.github.com/repos/bitshares/bitshares-core/issues/514","repository_url":"https://api.github.com/repos/bitshares/bitshares-core","labels_url":"https://api.github.com/repos/bitshares/bitshares-core/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/bitshares/bitshares-core/issues/514/comments","events_url":"https://api.github.com/repos/bitshares/bitshares-core/issues/514/events","html_url":"https://github.com/bitshares/bitshares-core/issues/514","id":278567109,"number":514,"title":"question of design","user":{"login":"lonnieOST","id":24719646,"avatar_url":"https://avatars0.githubusercontent.com/u/24719646?v=4","gravatar_id":"","url":"https://api.github.com/users/lonnieOST","html_url":"https://github.com/lonnieOST","followers_url":"https://api.github.com/users/lonnieOST/followers","following_url":"https://api.github.com/users/lonnieOST/following{/other_user}","gists_url":"https://api.github.com/users/lonnieOST/gists{/gist_id}","starred_url":"https://api.github.com/users/lonnieOST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonnieOST/subscriptions","organizations_url":"https://api.github.com/users/lonnieOST/orgs","repos_url":"https://api.github.com/users/lonnieOST/repos","events_url":"https://api.github.com/users/lonnieOST/events{/privacy}","received_events_url":"https://api.github.com/users/lonnieOST/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-01T19:14:52Z","updated_at":"2017-12-01T20:28:17Z","closed_at":null,"author_association":"NONE","body":"Greetings,\r\n\r\nI have come across the bitshares exchange and github site and like the peer-to-peer design for the exchange.\r\n\r\nI am trying to get a feel for how things are laid out. From what I can see, the bitshares-core runs on the peer nodes and establishes links with other bitshares nodes as the backend exchange which it seems that the bitshares-ui provides a frontend cloud interface that uses API calls to the backend nodes.\r\n\r\nAlso, I see that there are executables for different platforms as well as the web ui interface and also assume that these executable manage the local wallet and make API calls to the bitshares-core backend nodes.\r\n\r\nIs this correct?\r\n\r\nIf it is, the do I assume that the bitshares-core can be run on a few LAN nodes while the bitshares-ui can be set up on a web server and the bitshares executables can be run locally as well?\r\n\r\nAny clarification on the design would be greatly appreciated.\r\n\r\nThanks,\r\nLonnie"},"comment":{"url":"https://api.github.com/repos/bitshares/bitshares-core/issues/comments/348606227","html_url":"https://github.com/bitshares/bitshares-core/issues/514#issuecomment-348606227","issue_url":"https://api.github.com/repos/bitshares/bitshares-core/issues/514","id":348606227,"user":{"login":"oxarbitrage","id":21685097,"avatar_url":"https://avatars0.githubusercontent.com/u/21685097?v=4","gravatar_id":"","url":"https://api.github.com/users/oxarbitrage","html_url":"https://github.com/oxarbitrage","followers_url":"https://api.github.com/users/oxarbitrage/followers","following_url":"https://api.github.com/users/oxarbitrage/following{/other_user}","gists_url":"https://api.github.com/users/oxarbitrage/gists{/gist_id}","starred_url":"https://api.github.com/users/oxarbitrage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxarbitrage/subscriptions","organizations_url":"https://api.github.com/users/oxarbitrage/orgs","repos_url":"https://api.github.com/users/oxarbitrage/repos","events_url":"https://api.github.com/users/oxarbitrage/events{/privacy}","received_events_url":"https://api.github.com/users/oxarbitrage/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T20:28:17Z","updated_at":"2017-12-01T20:28:17Z","author_association":"NONE","body":"Hi Lonnie, welcome to bitshares :) that's pretty much correct. Let me try to explain a bit more with my limited skills, i may not be the best person to explain this ... someone pls correct me if needed. \r\n\r\nThere is a fixed number of block producers in the network connected by p2p. This machines running `bitshares-core` validate blocks(sign when they are valid) that are produced every 3 seconds in current live network. This consensus is done by DPOS(https://steemit.com/dpos/@dantheman/dpos-consensus-algorithm-this-missing-white-paper).\r\n\r\nSo when an operation like a transfer to send asset from A to B is created from the GUI what is is happening is that the operation is build and sent by the GUI to an API node in a format that the node can understand. An API node is also `bitshares-core` but does not need to be a producer, it just share the same blockchain data and expose the data to the public while it can also receive and broadcast operations. An API node will forward the new operation to a producer that will sign and broadcast back to the network marking the block as valid. After consensus asset will be transferred from A to B, this is very fast compared to other consensus algos used by other blockchains. The new version of the blockchain where user B now have more asset and user A less asset will be broadcast to the entire network and all participants will be upgraded to this new longer chain.\r\n\r\nAPI nodes are also connected by p2p to the network so their own version of the blockchain is updated when a new validated block arraives.\r\n\r\nNodes(api nodes, block producer or any other type of participant) are always in sync(have the same blockchain data) except for a small period of time that a new block is arriving the network and being validated.\r\n\r\nIn regards to the LAN and such, yes, it is possible to have your own blockchain that does not at all interact with the bitshares network, you can get started with that with this: https://github.com/bitshares/bitshares-core/wiki/private-testnet\r\n\r\nThere is also a public testnet where you can test all kind of things with virtual money(https://testnet.bitshares.eu/) and many other stuff in bitshares related mainly to trading, asset creation, governance, etc that you will be able to learn if you have an open mind and also have the time, because it is not easy stuff.\r\n\r\nHope it helps.\r\n"}}
{"actor":{"display_login":"oxarbitrage"}}