> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/th/riang-ru/validator/validator-slashing.md).

# Validator Slashing

## validator slashing คืออะไร?

Validator slashing คือกลไกการลงโทษที่มีความสำคัญต่อการรักษาความสมบูรณ์ของเครือข่าย

ใน blockchain แบบ Proof of Staked Authority (PoSA) อย่าง Chiliz Chain นั้น validator จะ stake token และได้รับการคัดเลือกตามชื่อเสียงและจำนวนที่ stake

{% hint style="info" %}
PoSA ผสมผสานองค์ประกอบของกลไก consensus แบบ Proof of Stake (PoS) และ Proof of Authority (PoA) เข้าด้วยกัน
{% endhint %}

Validator slashing ช่วยให้มั่นใจว่า validator จะดำเนินการอย่างมีความรับผิดชอบและเป็นประโยชน์ต่อ Chiliz Chain จึงช่วยป้องกันพฤติกรรมที่ไม่ดี เช่น การพลาดบล็อกและการหยุดทำงานเป็นเวลานาน

Slashing มีความสำคัญในการทำให้พฤติกรรมของ validator สอดคล้องกับความปลอดภัยและความน่าเชื่อถือของเครือข่าย

## บทลงโทษของ validator บน Chiliz Chain

มีบทลงโทษที่เป็นไปได้สองประการสำหรับ validator ได้แก่ การพลาดบล็อก และการหยุดทำงานเป็นเวลานาน

{% hint style="info" %}
บทลงโทษเหล่านี้เป็นแบบสะสม: จะถูกมอบให้เมื่อเกิดขึ้นภายใน epoch เดียวกัน โดย validator node จะถึง Slashing Level 1 แล้วจึงถึง Slashing Level 2

ซึ่งหมายความว่า validator node ที่ถึงบทลงโทษที่สอง (Slashing Level 2) จะได้รับผลที่ตามมาจากบทลงโทษแรก (Slashing Level 1) อยู่แล้ว
{% endhint %}

รายละเอียดของบทลงโทษทั้งสองประการมีดังนี้:

* **บทลงโทษ Missed Blocks**: หาก validator node พลาดบล็อก `XXX` บล็อกต่อ epoch (ประมาณหนึ่งวัน) จะสูญเสียรางวัลสำหรับ epoch นั้น นี่คือ Slashing Level 1
* **บทลงโทษ Extended Downtime ("jail")**: หาก validator node พลาดบล็อก `YYY` บล็อกต่อ epoch จะสูญเสียรางวัลสำหรับ epoch นั้นไปแล้ว (Slashing Level 1) และยังถูก "จองจำ" อีก 4 epoch (Slashing Level 2) เจ้าของ validator node จะสามารถ "ปล่อย" validator node ได้หลังจากช่วงเวลานี้เท่านั้น

บทลงโทษคำนวณตามสูตรเหล่านี้:

* Slashing level 1:\
  `XXX = (Total nbr of blocks in an epoch / Total nbr of Validators) / 2`
* Slashing level 2:\
  `YYY = (Total nbr of blocks in an epoch / Total nbr of Validators) * 3/4`

## วิธี unjail validator node

หาก validator node ของคุณถูก "จองจำ" คุณสามารถ "ปล่อย" (unjail) ได้ โดยต้องแก้ไขปัญหาและรอ 4 epoch ก่อน

{% hint style="info" %}
ก่อนที่คุณจะขอปล่อย ตรวจสอบให้แน่ใจว่าคุณได้แก้ไขปัญหาที่ทำให้ node ของคุณถูกจองจำในตอนแรกแล้ว!

ซึ่งอาจหมายถึงการอัปเกรด node ของคุณ หรือตรวจสอบให้แน่ใจว่าสิ่งที่ขัดขวางไม่ให้ node ทำงานได้รับการแก้ไขแล้ว
{% endhint %}

ในการปล่อย validator node จากการถูกจองจำ คุณต้องทำตามขั้นตอนเหล่านี้:

1. เมื่อคุณแก้ไขปัญหาเริ่มต้นที่ทำให้ node ถูกจองจำแล้ว คุณต้องรอ 4 epoch (ประมาณ 4-5 วัน)
2. หลังจาก 4 epoch ผ่านไป ให้เชื่อมต่อ กระเป๋าเงินของเจ้าของ validator กับ [Chiliz Staking dApp](https://governance.chilizchain.com/staking)
3. คลิกที่ปุ่ม "Unjail" ซึ่งอยู่ที่นี่ทางด้านขวา:<br>

   <figure><img src="/files/9yI55ccBiEDryGDTE0LX" alt=""><figcaption></figcaption></figure>
4. ป้อนที่อยู่ กระเป๋าเงิน ของ node ที่ถูกจองจำ แล้วคลิก "Submit"

<figure><img src="/files/BPUJWjEUfe7GsouKWl8F" alt="" width="359"><figcaption></figcaption></figure>

5. node ของคุณจะได้รับการปล่อยจากการถูกจองจำและสามารถทำงานได้อีกครั้ง

{% hint style="info" %}
node ของคุณต้องรอให้ epoch ถัดไปเริ่มต้นก่อนจึงจะสามารถสร้างบล็อกได้ อาจใช้เวลาสูงสุด 24 ชั่วโมง
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.chiliz.com/th/riang-ru/validator/validator-slashing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
