summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rz_api_mesh.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/rz_api_mesh.js b/scripts/rz_api_mesh.js
index 3fba4aef..5ffe7b76 100644
--- a/scripts/rz_api_mesh.js
+++ b/scripts/rz_api_mesh.js
@@ -1,9 +1,21 @@
/**
* API calls designed to execute in decentralized fashion
*/
-define([], function() {
+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();
});