summaryrefslogtreecommitdiff
path: root/src/client/rz_api_mesh.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-16 17:37:42 +0200
committerAlon Levy <alon@pobox.com>2014-12-16 17:37:42 +0200
commitade19de410e0a789a921ec1666b278b2a64176d6 (patch)
treec4c54b106de93609ca7bb70a20fd4be696715dbe /src/client/rz_api_mesh.js
parentc7d026b1d504323a8c61d51b726e5e8d2337fc4b (diff)
moving files around after repository merger
Diffstat (limited to 'src/client/rz_api_mesh.js')
-rw-r--r--src/client/rz_api_mesh.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/client/rz_api_mesh.js b/src/client/rz_api_mesh.js
new file mode 100644
index 00000000..9014dbac
--- /dev/null
+++ b/src/client/rz_api_mesh.js
@@ -0,0 +1,22 @@
+/**
+ * API calls designed to execute in decentralized fashion
+ */
+define(['rz_api_backend'],
+function(rz_api_backend) {
+ function RZ_API_Mesh() {
+
+ /**
+ * suggest diff block and await commit/reject consensus
+ */
+ // @ajax-trans
+ this.broadcast_possible_next_diff_block = function (diff_set) {
+
+ function on_success(data){
+ // TODO impl
+ }
+
+ rz_api_backend.commit_diff_set(diff_set);
+ }
+ }
+ return new RZ_API_Mesh();
+});