Bitcoin Forum
June 17, 2024, 12:10:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Poll
Question: No Active Poll
  n/a - 0 (0%)
N/A - 0 (0%)
Total Voters: 0

Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »  All
  Print  
Author Topic: CryptoCoin Explorer - Coin Block Explorers.  (Read 30756 times)
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 28, 2013, 05:42:27 AM
 #141

PPC explorer is broken right now

class '_mysql_exceptions.ProgrammingError'>: (2014, "Commands out of sync; you can't run this command now")
      args = (2014, "Commands out of sync; you can't run this command now")

The errors should be gone now.


After a bit of research I found this is a quirk of MySQL that can happen often if someone (Like me   Cheesy) is accessing Mysql through the console while other processes are working with Mysql at the same time.

I just happened to be accessing the databases from console around the time you were getting those errors.

As I rarely directly access the databases through console, especially while the explorers are running, this error has not been noticed before.

Lesson learned, I will be more careful in the future and possibly switch to the back up if I need to directly access Mysql databases while the explorers are live.



dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 28, 2013, 10:53:17 PM
 #142

QUICK GUIDE CCE API USAGE

All CCE explorers have an API for both utility and detailed information. The API is capable of both comma separated and JSON outputs with the nethash command. The exception is the Novacoin explorer, as it is based on an older version of ABE. Append “?format=json” to the url.

The API for any of the explorers can be accessed using the following patterns:

http://cryptocoinexplorer.com:<Port>/q/<command><options>

or
 
http://cryptocoinexplorer.com:<Port>chain/<Coin name>/q/<command><options>

Port = The explorer port for the coin you want to use.

PPC=2750
TRC=3750
FRC=4750
FC=5750
NVC=6750
BTE=7750

chain = The literal word “chain”, no need to change

Coin Name = Except for PPCoin,  Coin Name is First character upper case, the rest lower case. Example: Terracoin

q = literal “q”

Examples:

Returns the version encoded in ADDRESS as a hex string.
If ADDRESS is invalid, returns either X5, SZ, or CK for BBE compatibility.
/q/checkaddress/ADDRESS

http://cryptocoinexplorer.com:2750/q/checkaddress/PAYCKSPFGRUdWPyYt2pDs1WYXdPEkah9Qy


Shows statistics every INTERVAL blocks.
Negative values count back from the last block.
/chain/CHAIN/q/nethash[/INTERVAL[/START[/STOP]]]

http://cryptocoinexplorer.com:5750/chain/Feathercoin/q/nethash/100/1000/2000

or

http://cryptocoinexplorer.com:5750/chain/Feathercoin/q/nethash/100/1000/2000?format=json


Shows ADDRESS's version byte(s) and public key hash as hex strings separated by colon (":").
/q/decode_address/ADDRESS
http://cryptocoinexplorer.com:4750/q/decode_address/6xRWJA31C1p2fuZg8cT9Y9iwLAUb9ZeKUE



Shows the amount of currency ever mined.
This does not support future block numbers, and it returns a sum of observed generations rather than a calculated value.
/chain/CHAIN/q/totalbc[/HEIGHT]

http://cryptocoinexplorer.com:2750/chain/PPCoin/q/totalbc/40000


I hope this post gives enough basic information to allow one to figure out the API if they wish to use it.

Descriptions of all the functions can be found by clicking the API link on each every page or directly by simply using a "q" after the port.

Example: http://cryptocoinexplorer.com:2750/q





Walter Rothbard
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


Bytecoin: 8VofSsbQvTd8YwAcxiCcxrqZ9MnGPjaAQm


View Profile WWW
April 29, 2013, 05:12:51 PM
 #143

I don't know if I've found a bug, or if you're just keeping some data out for privacy:

If I plug this transaction ID into bytecoin chain search:

9a450a3d2c252d18f058dc78321cc3ec872668ed7230b8cd5a862b95e7568f79

I see 10.0 BTE that went to 8KavvVegRXmYRUetYEEA1rMCrLjuZzmyrg (your BTE donation address).

But if I plug that address into search, I have been consistently getting "not found" for days.

This never worked until I searched by transaction ID.

Caching issue?

dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 29, 2013, 05:42:09 PM
 #144

I don't know if I've found a bug, or if you're just keeping some data out for privacy:

If I plug this transaction ID into bytecoin chain search:

9a450a3d2c252d18f058dc78321cc3ec872668ed7230b8cd5a862b95e7568f79

I see 10.0 BTE that went to 8KavvVegRXmYRUetYEEA1rMCrLjuZzmyrg (your BTE donation address).

But if I plug that address into search, I have been consistently getting "not found" for days.

This never worked until I searched by transaction ID.

Caching issue?

I can pull it up ok:

Code:
Address 8KavvVegRXmYRUetYEEA1rMCrLjuZzmyrg

Short Link: http://cryptocoinexplorer.com:7750/a/8KavvVegRX

Balance: 10 BTE
Transactions in: 1
Received: 10 BTE
Transactions out: 0
Sent: 0 BTE
Transactions
Transaction Block Approx. Time Amount Balance Currency
9a450a3d2c... 15216 2013-04-26 02:53:26 10 10 BTE

API (machine-readable pages)

I have gotten a few messages about searches that do not work over the time CCE has been up. This first thing to check, is to make sure you have no spaces at the beginning or end of the search term, as the search is white space sensitive.

PS: Thank you for the donation  Smiley
 
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 29, 2013, 05:45:25 PM
 #145

Would people ever do searchs that have a whitespace in the middle of the search term? I tend to think of all searches being hashes and block numbers. If spaces should never happen, you could do a little script to remove them on submission. Smiley
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 29, 2013, 06:02:07 PM
 #146

Would people ever do searchs that have a whitespace in the middle of the search term? I tend to think of all searches being hashes and block numbers. If spaces should never happen, you could do a little script to remove them on submission. Smiley

You are correct..I will add that to the "list"   Cheesy


I was also thinking about opening the backup CCE for site owners that use the explorer API on CCE.

I think this would be good for three reasons:

1. Free up traffic on the public CCE site, giving regular users a faster system, and site owners faster API response.

2. The public site is more apt to go down due to overload, malicious acts, or even unintentional bad queries. As only sites using the API would have access to the backup CCE, sites depending on CCE would not be effected in terms of a break in service. However, the backup site primary purpose is to make an easy switch over in case the primary CCE site goes down. So if the Public site goes down, i will switch the DNS of the public site to point to the backup site until the public site is back up.

3. I can cater the backup CCE site to the needs of API users and in the reverse tune the public site for regular users.



Walter Rothbard
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


Bytecoin: 8VofSsbQvTd8YwAcxiCcxrqZ9MnGPjaAQm


View Profile WWW
April 29, 2013, 07:15:22 PM
 #147

PS: Thank you for the donation  Smiley

Who says it was me? Wink

Radacoin
Sr. Member
****
Offline Offline

Activity: 255
Merit: 250


View Profile
April 29, 2013, 07:37:56 PM
 #148

The coin formerly known as FC is now called FTC  Wink
Walter Rothbard
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


Bytecoin: 8VofSsbQvTd8YwAcxiCcxrqZ9MnGPjaAQm


View Profile WWW
April 29, 2013, 07:39:41 PM
 #149

The coin formerly known as FC is now called FTC  Wink

Just what we needed in the cryptocoin community: a Federal Trade Commission.

dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 29, 2013, 07:44:50 PM
 #150

The coin formerly known as FC is now called FTC  Wink

As soon as I get official word from bushstar, I will work on changing the code 3 for Feathercoin.

This might require a database rebuild.

John Tobey
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
April 29, 2013, 08:30:10 PM
 #151

This might require a database rebuild.

I would doubt it, just an SQL update of chain_code3.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 30, 2013, 12:04:48 AM
Last edit: April 30, 2013, 04:17:50 AM by dreamwatcher
 #152

Something strange is going on with the server and the error pages suddenly coming up. I have switched over to the backup server and DNS should propagate soon.

The back-up IP address is : 198.58.105.9
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 30, 2013, 01:14:34 AM
Last edit: April 30, 2013, 04:18:00 AM by dreamwatcher
 #153


This is starting to look like an attack. The backup server (which is at the same same level as the primary), was knocked completely out within a very short period of time. CPU usage >200% and traffic so locked up I could not SSH into it.

On the primary server, all I have done is change all the passwords, and magically every works like normal. I have switched the DNS back to the primary and if it goes down again, I will have to keep both servers down until this gets sorted.  Sad
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 30, 2013, 02:12:44 AM
 #154

This might require a database rebuild.

I would doubt it, just an SQL update of chain_code3.


Thank you. That just saved me the trouble of rebuilding.
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 30, 2013, 02:16:36 AM
Last edit: April 30, 2013, 04:17:31 AM by dreamwatcher
 #155

I moved the DNS back to the primary. I will wait and see and hope.  Wink
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 30, 2013, 04:17:18 AM
 #156

Well it looks like everything is back to normal.

I will get the NVC and TRC test net daemons up in a few minutes.


dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
May 02, 2013, 12:48:27 AM
 #157

 Smiley Smiley Smiley

CCE has outgrown it's VPS!!


The Explorer will be down for a short time to night as the VPS is upgraded.

Unfortunately the backup server is still a mess after the "strange" activities Monday night.

The down time should be short.... Lips sealed
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
May 02, 2013, 02:34:53 AM
 #158

:::sigh::::  I try so hard to give you good service   Embarrassed

Anyways all the coins are up on the backup server and the dns should propagate shortly.
Except for TRC, it will be up shortly, its database was a causality of the Monday night weird thing, attack , whatever.


Again the Back up server IP is 198.58.105.9 if you need to use it before propagation.
dreamwatcher (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
May 02, 2013, 05:39:53 AM
 #159

I am by no means permanently shutting down!!!

I have regrettably come to the decision to shut down for a short while. I need to sort out what is going in terms of the explorers. I feel as if I am being fought every step of the way.

Suddenly servers cannot take the stress, I am running 200%+ sometimes with CPUs. Network gets so jammed up I cannot log in to administrate the servers.

I do not know if this is an attack, or just symptom of growing bigger.

Either way, I have spent too many sleepless nights and I need to step back and decide what the best course of action is going to be.

The honest truth is that I cannot do anything about the servers going down at the moment, and it feels like I am bailing out a submarine with a screen door. As a matter of fact, even with the site pretty much unavailable, it looks like I am spiking at 400% CPU.

I WILL to be back up in a couple of days. I will still be around here, and look forward to any advice or ideas you may have.

That's it for tonight , I gotta get some sleep.

Robert

roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
May 02, 2013, 01:04:23 PM
 #160

Run top to see which process(es) are using all of the cpu. Could be a ddos on the web server, could be some other form of attack (on the ssh port, mysql, etc). Might look at using cloudflare for dns since it can help with ddos. Sorry you are having such issues. Sad
Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!