blob: 9014dbac690485eb09ce2abe4d19df62811df0b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
});
|