diff --git a/axe.js b/axe.js index d8275294..98b45572 100644 --- a/axe.js +++ b/axe.js @@ -49,6 +49,7 @@ root.on('hi', function(peer){ // TEMPORARY! Try to connect all peers. this.to.next(peer); if(!peer.url){ return } // ignore WebRTC disconnects for now. + return; // DO NOT COMMIT THIS FEATURE YET! KEEP TESTING NETWORK PERFORMANCE FIRST! (function next(){ if(!peer.wire){ return } if(!axe.fall){ setTimeout(next, 9); return } // not found yet diff --git a/examples/basic/chat.html b/examples/basic/chat.html new file mode 100644 index 00000000..64638fe8 --- /dev/null +++ b/examples/basic/chat.html @@ -0,0 +1,21 @@ + +
Moved to ./chat.html!
\ No newline at end of file diff --git a/examples/basic/note.html b/examples/basic/note.html new file mode 100644 index 00000000..5dca5fe8 --- /dev/null +++ b/examples/basic/note.html @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/examples/basic/paste.html b/examples/basic/paste.html index ea747835..0a84f3f2 100644 --- a/examples/basic/paste.html +++ b/examples/basic/paste.html @@ -1,9 +1,2 @@ - - - \ No newline at end of file +Moved to ./note.html!
\ No newline at end of file diff --git a/examples/basic/post.html b/examples/basic/post.html new file mode 100644 index 00000000..bd39b08d --- /dev/null +++ b/examples/basic/post.html @@ -0,0 +1,45 @@ + + +Moved to ./post.html!
\ No newline at end of file diff --git a/examples/index.html b/examples/index.html index f67e2098..d773e81e 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,4 +1,4 @@This is the examples folder. -
The most basic example is ./basic/paste.html!
+The most basic example is ./basic/note.html!
Home page temporarily disabled.
\ No newline at end of file diff --git a/gun.js b/gun.js index 7fdd5e12..75343cba 100644 --- a/gun.js +++ b/gun.js @@ -370,7 +370,7 @@ console.STAT && console.STAT(((DBG||ctx).Hf = +new Date), tmp, 'future'); return; } - if(state < was){ /*old;*/ if(!ctx.miss){ return } } // but some chains have a cache miss that need to re-fire. // TODO: Improve in future. // for AXE this would reduce rebroadcast, but GUN does it on message forwarding. + if(state < was){ /*old;*/ if(true || !ctx.miss){ return } } // but some chains have a cache miss that need to re-fire. // TODO: Improve in future. // for AXE this would reduce rebroadcast, but GUN does it on message forwarding. // TURNS OUT CACHE MISS WAS NOT NEEDED FOR NEW CHAINS ANYMORE!!! DANGER DANGER DANGER, ALWAYS RETURN! (or am I missing something?) if(!ctx.faith){ // TODO: BUG? Can this be used for cache miss as well? // Yes this was a bug, need to check cache miss for RAD tests, but should we care about the faith check now? Probably not. if(state === was && (val === known || L(val) <= L(known))){ /*console.log("same");*/ /*same;*/ if(!ctx.miss){ return } } // same }