سفارش تبلیغ
صبا ویژن

مرجع آموزش بلاک چین و ارزهای دیجیتال

وایت پیپر اتریوم- قسمت ششم

    نظر

 

در ادامه قسمت پنجم وایت پیپر اتریوم:

بلاک چین و ماینینگ اتریوم (Blockchain and Mining )

با وجود تفاوتهایی بین بلاکچین اتریوم و بیتکوین هنوز هم میتوان گفت این دو از بسیاری جهات شبیه به هم هستند. با توجه به ساختار اتریوم ، اصلی ترین تفاوت آنها این است که بلاک های اتریوم بر خلاف بیت کوین از لیستی از تراکنش ها و آخرین وضعیت تشکیل شده اند.

جدا از این مسأله، دو عدد دیگر یعنی شماره بلاک و سختی شبکه هم در بلاک ذخیره میشود.

در سیستم اتریوم ترتیب الگوی اعتبار سنجی بلاک به شرح زیر است:

 

Check that the timestamp of the block is greater than that of the referenced previous block and less than 15 minutes into the future

 Check that the block number, difficulty, transaction root, uncle root and gas limit (various low-level Ethereum-specific concepts) are valid

Check that the proof of work on the block is valid

 Let S[0] be the STATE_ROOT of the previous block

Let TX be the block’s transaction list, with n transactions. For all in in 0…n-1, set S[i+1] = APPLY(S[i],TX[i]). If any applications returns an error, or if the total gas consumed in the block up until this point exceeds the GASLIMIT, return an error

 Let S_FINAL be S[n], but adding the block reward paid to the miner

 Check if S_FINAL is the same as the STATE_ROOT. If it is, the block is valid; otherwise, it is not valid

 

جهت مشاهده ادامه مقاله به آدرس وب سایت فکت کوینز مراجعه نمایید