Spread payment requests to subdirs
Currently Electrum stores all payment requests in main requests directory. It's not going to be efficient when we have thousands of thousands of payment requests. This patch spreads that files across two level of subdirectories.
This commit is contained in:
@@ -25,7 +25,8 @@ function getUrlParameter(sParam)
|
||||
var id = getUrlParameter('id');
|
||||
|
||||
if (id) {
|
||||
var jqxhr = $.getJSON(id + ".json", function() {
|
||||
var uri_path = location.pathname;
|
||||
var jqxhr = $.getJSON(uri_path.replace("index.html", "req/"+ id[0] + "/"+ id[1] + "/"+ id + "/"+ id + ".json"), function() {
|
||||
console.log("getJSON:success");
|
||||
})
|
||||
.done( function(data) {
|
||||
|
||||
Reference in New Issue
Block a user