The invention discloses a data archiving method of block-chain block data and electronic equipment and belongs to the technical field of computers. The method includes: periodically detecting block data, meeting archiving conditions, in block-chain node data; if the block data meeting the archiving conditions is detected, locally copying the block data meeting the archiving conditions, performing compression, and uploading the package to a reliable distributed storage system; if the uploading succeeds, acquiring the file hash of the uploaded package, and inserting the file hash of the package and the record of the height range of the uploaded block data into an archiving file hash table; if the uploading fails, outputting an error log and re-uploading. The method has the advantages that the block data meeting the archiving conditions is detected periodically, the block data meeting the archiving conditions is archived, the archiving requirements of the block-chain node block data are satisfied, the block data of node storage is reduced, hard disk space occupation of the block data is reduced, hard disk space utilization rate is increased, and node data backup and recovery efficiency is increased.