{"id":439,"date":"2024-07-18T16:13:40","date_gmt":"2024-07-18T08:13:40","guid":{"rendered":"http:\/\/2018.hoticn.cn\/?p=439"},"modified":"2024-07-19T09:39:59","modified_gmt":"2024-07-19T01:39:59","slug":"%e5%8c%ba%e5%9d%97%e9%93%be%e8%ae%ba%e6%96%87a%e4%bc%9a-atc-2024-%e9%ab%98%e6%95%88%e8%bd%bb%e9%87%8f%e7%9a%84%e4%bb%a5%e5%a4%aa%e5%9d%8a%e5%ad%98%e6%a1%a3%e8%8a%82%e7%82%b9%e6%9e%b6%e6%9e%84","status":"publish","type":"post","link":"https:\/\/2018.hoticn.cn\/?p=439","title":{"rendered":"\u533a\u5757\u94fe\u8bba\u6587A\u4f1a-ATC 2024 \u9ad8\u6548\u8f7b\u91cf\u7684\u4ee5\u592a\u574a\u5b58\u6863\u8282\u70b9\u67b6\u6784"},"content":{"rendered":"<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-440\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/1-1.png\" alt=\"\" width=\"1000\" height=\"201\" \/><\/a><\/p>\n<p>The rapid growth of Ethereum necessitates robust archive nodes that capture all historical states, yet current models struggle with immense storage needs and subpar performance due to inefficient authenticated Merkle Patricia Tries and coarse state granularity. This paper introduces SlimArchive, a novel lightweight and high-performance architecture for Ethereum archive nodes, designed to overcome these challenges. The core innovation lies in preserving compact, flattened, transaction-level historical states by recording minimal state changes for each transaction. This approach drastically reduces storage demands while significantly enhancing state access performance. Our prototype, SLIMARCHIVE, demonstrates remarkable efficiency, reducing storage requirements by 98.1%, increasing state access throughput by 19.0\u00d7, and accelerating transaction execution by an average of 1112.5\u00d7 compared to vanilla Geth.<\/p>\n<p>\u968f\u7740\u4ee5\u592a\u574a\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8bb0\u5f55\u6240\u6709\u5386\u53f2\u72b6\u6001\u7684\u5b58\u6863\u8282\u70b9\u6210\u4e3a\u57fa\u7840\u8bbe\u65bd\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u7136\u800c\uff0c\u7531\u4e8e\u8ba4\u8bc1\u7684 Merkle Patricia Trie \u6548\u7387\u4f4e\u4e0b\u548c\u72b6\u6001\u7c92\u5ea6\u7c97\uff0c\u5f53\u524d\u7684\u5b58\u6863\u8282\u70b9\u9762\u4e34\u7740\u5de8\u5927\u7684\u5b58\u50a8\u9700\u6c42\u548c\u8f83\u5dee\u7684\u6027\u80fd\u8868\u73b0\u3002\u672c\u6587\u63d0\u51fa\u4e86\u4e00\u79cd\u65b0\u9896\u7684\u8f7b\u91cf\u7ea7\u3001\u9ad8\u6027\u80fd\u7684\u4ee5\u592a\u574a\u5b58\u6863\u8282\u70b9\u67b6\u6784SlimArchive\uff0c\u4ee5\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u5176\u6838\u5fc3\u521b\u65b0\u5728\u4e8e\u901a\u8fc7\u8bb0\u5f55\u6bcf\u7b14\u4ea4\u6613\u7684\u6700\u5c0f\u72b6\u6001\u53d8\u5316\u6765\u7ef4\u62a4\u7d27\u51d1\u3001\u6241\u5e73\u7684\u4ea4\u6613\u7ea7\u5386\u53f2\u72b6\u6001\u3002\u8fd9\u4e00\u65b9\u6cd5\u663e\u8457\u51cf\u5c11\u4e86\u5b58\u50a8\u9700\u6c42\uff0c\u540c\u65f6\u5927\u5e45\u63d0\u5347\u4e86\u72b6\u6001\u8bbf\u95ee\u6027\u80fd\u3002\u6211\u4eec\u5b9e\u73b0\u7684\u539f\u578b\u7cfb\u7edfSLIMARCHIVE\u5c55\u793a\u4e86\u51fa\u8272\u7684\u6548\u7387\uff0c\u76f8\u8f83\u4e8evanilla Geth\uff0c\u5b58\u50a8\u9700\u6c42\u51cf\u5c11\u4e8698.1%\uff0c\u72b6\u6001\u8bbf\u95ee\u541e\u5410\u91cf\u63d0\u9ad8\u4e8619.0\u500d\uff0c\u4ea4\u6613\u6267\u884c\u901f\u5ea6\u5e73\u5747\u63d0\u5347\u4e861112.5\u500d\u3002<\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-441\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/2-1.png\" alt=\"\" width=\"1000\" height=\"450\" \/><\/a><\/p>\n<p>\u5982\u56fe1\u6240\u793a\uff0c\u4ee5\u592a\u574a\u7ef4\u62a4\u4e24\u79cd\u7c7b\u578b\u7684MPT\uff1a\u72b6\u6001Trie\uff08\u5de6\u4fa7\u90e8\u5206\uff09\u548c\u5b58\u50a8Trie\uff08\u53f3\u4fa7\u90e8\u5206\uff09\u3002\u6bcf\u4e2a\u533a\u5757\u8bb0\u5f55\u8d26\u6237\u72b6\u6001\u7684StateRoot\uff1b\u6bcf\u4e2a\u5408\u7ea6\u8d26\u6237\u8bb0\u5f55\u5408\u7ea6\u5b58\u50a8\u72b6\u6001\u7684StorageRoot\u3002\u8d26\u6237\u548c\u5b58\u50a8\u6570\u636e\u5b58\u50a8\u5728\u53f6\u8282\u70b9\u4e2d\uff08\u56fe1\u4e2d\u7684\u7070\u8272\u77e9\u5f62\uff09\u3002MPT\u662f\u4e00\u4e2a16\u57fa\u6570Trie\uff0c\u8def\u5f84\u7531\u4e00\u7cfb\u5217\u5341\u516d\u8fdb\u5236\u6570\u5b57\u8868\u793a\u5730\u5740\u6216\u63d2\u69fd\u5bc6\u94a5\u3002\u4e3a\u4e86\u8282\u7701\u78c1\u76d8\u7a7a\u95f4\uff0c\u5982\u679c\u8282\u70b9\u53ea\u6709\u4e00\u4e2a\u5b50\u8282\u70b9\uff0cMPT\u4f1a\u5c06\u8282\u70b9\u4e0e\u5176\u5b50\u8282\u70b9\u5408\u5e76\u3002\u56e0\u6b64\uff0cMPT\u7684\u5b9e\u9645\u6df1\u5ea6\u4f4e\u4e8e\u5b8c\u6574\u7684MPT\u3002\u5728\u4ee5\u592a\u574a\u4e2d\uff0c\u72b6\u6001\u8bbf\u95ee\u9700\u8981\u4ece\u6839\u5230\u53f6\u641c\u7d22MPT\uff08\u56fe1\u4e2d\u7684\u7ea2\u7ebf\uff09\u3002<\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/3-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-442\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/3-1.png\" alt=\"\" width=\"524\" height=\"367\" \/><\/a><\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/4-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-443\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/4-1.png\" alt=\"\" width=\"688\" height=\"322\" \/><\/a><\/p>\n<p><strong>1\uff1a<\/strong>\u00a0\u5728\u5927\u591a\u6570\u5b9e\u9645\u4f7f\u7528\u573a\u666f\u4e2d\uff0c\u4e0d\u9700\u8981\u5bf9\u5386\u53f2\u72b6\u6001\u8fdb\u884c\u6570\u636e\u8ba4\u8bc1\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong>\u00a0\u4e3a\u4e86\u5728\u4e0d\u9700\u8981\u6570\u636e\u8ba4\u8bc1\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u66f4\u9ad8\u6548\u3001\u66f4\u5177\u6210\u672c\u6548\u76ca\u7684\u5b58\u6863\u8282\u70b9\uff0c\u6211\u4eec\u91c7\u7528\u538b\u7f29\u6241\u5e73\u7684\u6570\u636e\u6a21\u578b\uff0c\u800c\u4e0d\u662f\u590d\u6742\u7684\u5386\u53f2\u72b6\u6001MPT\uff0c\u4ee5\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u4e2d\u95f4\u6570\u636e\u5e76\u7b80\u5316\u72b6\u6001\u8bbf\u95ee\u3002<\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/5-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-444 size-full\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/5-1.png\" alt=\"\" width=\"555\" height=\"363\" \/><\/a><\/p>\n<p><strong>2\uff1a<\/strong>\u00a0\u867d\u7136\u4ee5\u592a\u574a\u5728\u5916\u90e8\u770b\u8d77\u6765\u5177\u6709\u5757\u7ea7\u72b6\u6001\u8f6c\u6362\uff0c\u4f46\u5728\u4f4e\u7ea7\u6267\u884c\u5c42\uff08EVM\uff09\uff0c\u5bfc\u81f4\u72b6\u6001\u8f6c\u6362\u7684\u57fa\u672c\u5355\u4f4d\u662f\u4ea4\u6613\uff0c\u5373\u6267\u884c\u5c42\u72b6\u6001\u8f6c\u6362\u7684\u7c92\u5ea6\u662f\u4ea4\u6613\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong>\u00a0\u6211\u4eec\u53ef\u4ee5\u5c06\u5386\u53f2\u72b6\u6001\u7684\u7c92\u5ea6\u7ec6\u5316\u4e3a\u6267\u884c\u5c42\u7684\u4ea4\u6613\uff0c\u4ee5\u6d88\u9664\u9884\u5904\u7406\u9020\u6210\u7684\u5f00\u9500\u3002<\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/6-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-445\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/6-1.png\" alt=\"\" width=\"567\" height=\"515\" \/><\/a><\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/7-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-446\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/7-1.png\" alt=\"\" width=\"590\" height=\"283\" \/><\/a><\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/8-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-447\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/8-1.png\" alt=\"\" width=\"693\" height=\"164\" \/><\/a><\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/9-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-448\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/9-1.png\" alt=\"\" width=\"555\" height=\"713\" \/><\/a><\/p>\n<p><a href=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-449\" src=\"http:\/\/2018.hoticn.cn\/wp-content\/uploads\/2024\/07\/10.png\" alt=\"\" width=\"708\" height=\"253\" \/><\/a><\/p>\n<p><strong>Pdf <\/strong><strong>link:<\/strong><\/p>\n<p>https:\/\/www.usenix.org\/conference\/atc24\/presentation\/feng-hang<\/p>\n<p>&nbsp;<\/p>\n<p>\u6587\u7ae0\u6765\u6e90\uff1ahttps:\/\/mp.weixin.qq.com\/s\/fOqqrYUtv7QqDn9e0Gzlew<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The rapid growth of Ethereum necessitates robust archiv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-439","post","type-post","status-publish","format-standard","hentry","category-home"],"_links":{"self":[{"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=439"}],"version-history":[{"count":2,"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=\/wp\/v2\/posts\/439\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2018.hoticn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}