پردازش ابري

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

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

۱ بازديد

 

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

 

بلاك چين و ماينينگ اتريوم (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

 

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