QStrings=QInputDialog::getItem(this,"Connect to a Network Peer","Enter a peer to which a connection may be made:",m_servers,m_servers.count()?rand()%m_servers.count():0,true,&ok);
classInvalidBlockFormat:publicException{public:InvalidBlockFormat(int_f,bytesConstRef_d):m_f(_f),m_d(_d.toBytes()){}intm_f;bytesm_d;virtualstd::stringdescription()const{return"Invalid block format: Bad field "+toString(m_f)+" ("+asHex(m_d)+")";}};
classInvalidBlockHeaderFormat:publicException{public:InvalidBlockHeaderFormat(int_f,bytesConstRef_d):m_f(_f),m_d(_d.toBytes()){}intm_f;bytesm_d;virtualstd::stringdescription()const{return"Invalid block header format: Bad field "+toString(m_f)+" ("+asHex(m_d)+")";}};
staticconsteth::uintc_maxHashes=256;///< Maximum number of hashes GetChain will ever send.
staticconsteth::uintc_maxBlocks=128;///< Maximum number of blocks Blocks will ever send. BUG: if this gets too big (e.g. 2048) stuff starts going wrong.