# Simulating Byzantine behavior in Tendermint local cluster

**URL:** <https://forum.cosmos.network/t/simulating-byzantine-behavior-in-tendermint-local-cluster/3614>\
**Category:** Tendermint\
**Created:** [May 4, 2020, 9:45pm UTC](https://forum.cosmos.network/t/simulating-byzantine-behavior-in-tendermint-local-cluster/3614 "2020-05-04T21:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FurkanKarakas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/furkankarakas/32/1199_2.png) [@FurkanKarakas](https://forum.cosmos.network/u/FurkanKarakas)\
**Post date:** [May 4, 2020, 9:45pm UTC](https://forum.cosmos.network/t/simulating-byzantine-behavior-in-tendermint-local-cluster/3614/1 "2020-05-04T21:45:51Z")

</div>

Hello everyone,

I hope you are doing fine in the pandemic. I am doing a project about Tendermint and I want to perform Byzantine behavior in Tendermint local cluster. As a start, I have four nodes and I would like to simulate a case where one node is Byzantine and the three nodes are trustworthy. I think the best way to perform this task is to edit the Tendermint code base. However, I found the Github repository very intricate and I couldn’t locate individual code blocks where I should perform this task. Could you please help me in this regard? I am also starter in Golang but I’m willing to constantly learn.

Best,  
Furkan

---

<div class="post-metadata">

**Author:** ![FurkanKarakas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/furkankarakas/32/1199_2.png) [@FurkanKarakas](https://forum.cosmos.network/u/FurkanKarakas)\
**Post date:** [May 8, 2020, 3:45pm UTC](https://forum.cosmos.network/t/simulating-byzantine-behavior-in-tendermint-local-cluster/3614/2 "2020-05-08T15:45:25Z")

</div>

Up in the forum posts +

---

<div class="post-metadata">

**Author:** ![ebuchman](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/ebuchman/32/6645_2.png) [@ebuchman](https://forum.cosmos.network/u/ebuchman)\
**Post date:** [May 25, 2020, 10:15pm UTC](https://forum.cosmos.network/t/simulating-byzantine-behavior-in-tendermint-local-cluster/3614/3 "2020-05-25T22:15:17Z")

</div>

It really depends what kind of Byzantine behaviour you want. One simple/naiive approach is to just run two nodes with the same priv\_validator key. Then you will get some sporadic double signing behaviour. But more nuanced behaviour will take more effort.

You can read about some of the Byzantine validator tests Jepsen ran here: [https://jepsen.io/analyses/tendermint-0-10-2](https://jepsen.io/analyses/tendermint-0-10-2)

There’s also the `consensus/byzantine_test.go ` file which runs some tests with byzantine validators.

Hope that helps!
