@@ -79,19 +79,7 @@ var initialization = async function() {
79
79
path : '/api/richlist' ,
80
80
handler : function ( request , reply )
81
81
{
82
- return new Promise ( function ( accept , reject ) {
83
- var LIMIT = request . query . limit ;
84
- LIMIT = LIMIT > 0 && LIMIT <= 10000 ? LIMIT : 100 ;
85
- query ( "SELECT * FROM bth_addresses WHERE 1 ORDER BY balance DESC LIMIT " + LIMIT , { } , function ( err , results , fields ) {
86
- if ( err ) accept ( { richlist :[ ] } ) ;
87
- else {
88
- let richlist = results . map ( function ( result ) {
89
- return { address :result . address , balance :result . balance }
90
- } ) ;
91
- accept ( { richlist :richlist } ) ;
92
- }
93
- } ) ;
94
- } ) ;
82
+ return { richlist : [ ] } ;
95
83
}
96
84
} ) ;
97
85
@@ -101,7 +89,7 @@ var initialization = async function() {
101
89
handler : function ( request , reply )
102
90
{
103
91
return new Promise ( function ( accept , reject ) {
104
- got ( "http://insight.bithereum.network/insight-api/status" ) . then ( function ( response ) {
92
+ got ( "http://insight-explorer .bithereum.network/insight-api/status" ) . then ( function ( response ) {
105
93
try {
106
94
var data = JSON . parse ( response . body ) ;
107
95
accept ( data . info . circulating ) ;
@@ -120,7 +108,7 @@ var initialization = async function() {
120
108
handler : function ( request , reply )
121
109
{
122
110
return new Promise ( function ( accept , reject ) {
123
- got ( "http://insight2 .bithereum.network/insight-api/status" ) . then ( function ( response ) {
111
+ got ( "http://insight-explorer .bithereum.network/insight-api/status" ) . then ( function ( response ) {
124
112
accept ( response . body ) ;
125
113
} ) ;
126
114
} ) ;
0 commit comments