A blockchain consensus method based on a Honey Badger Byzantine fault tolerance consensus mechanism, comprising: performing, by a target consensus node, a current round of consensus, to count consensus votes of N consensus proposals; traversing, by the target consensus node, a first set, to perform the following steps: migrating consensus proposals that each receive greater than or equal to f+1 and less than 2f+1 identical consensus votes into a second set; and migrating consensus proposals that each receive less than f+1 identical consensus votes into a third set to update to opposition consensus opinions, wherein the first set is used for storing consensus proposals that each receive greater than or equal to 2f+1 identical consensus votes, and f is a number of fault tolerant consensus nodes of a blockchain; traversing, by the target consensus node, a fourth set, to perform the following steps: migrating consensus proposals that each receive greater than or equal to 2f+1 identical consensus votes into the second set; migrating consensus proposals that each receive greater than or equal to f+1 and less than 2f+1 identical consensus votes and are traceable based on an erasure coding algorithm into the second set to update to agreement consensus opinions; migrating consensus proposals that each receive greater than or equal to f+1 and less than 2f+1 identical consensus votes and are untraceable based on the erasure coding algorithm into the third set to update to opposition consensus opinions; and migrating consensus proposals that each receive less than f+1 identical consensus votes into the third set to update to opposition consensus opinions, wherein the first set is an absolute complement of the fourth set for the N consensus proposals, and the fourth set stores the N consensus proposals in a first round of consensus; merging, by the target consensus node, the second set into the first set, and merging the third set into the fourth set, to perform a next round of consensus until the first set stores the N consensus proposals and the N consensus proposals each receive greater than or equal to 2f+1 identical consensus votes; and determining, by the target consensus node, a consensus result based on counted consensus votes of the N consensus proposals in the last round of consensus. performing, by a target consensus node, a current round of consensus, to count consensus votes of N consensus proposals; traversing, by the target consensus node, a first set, to perform the following steps: migrating consensus proposals that each receive greater than or equal to f+1 and less than 2f+1 identical consensus votes into a second set; and migrating consensus proposals that each receive less than f+1 identical consensus votes into a third set to update to opposition consensus opinions, wherein the first set is used for storing consensus proposals that each receive greater than or equal to 2f+1 identical consensus votes, and f is a number of fault tolerant consensus nodes of a blockchain; traversing, by the target consensus node, a fourth set, to perform the following steps: migrating consensus proposals that each receive greater than or equal to 2f+1 identical consensus votes into the second set; migrating consensus proposals that each receive greater than or equal to f+1 and less than 2f+1 identical consensus votes and are traceable based on an erasure coding algorithm into the second set to update to agreement consensus opinions; migrating consensus proposals that each receive greater than or equal to f+1 and less than 2f+1 identical consensus votes and are untraceable based on the erasure coding algorithm into the third set to update to opposition consensus opinions; and migrating consensus proposals that each receive less than f+1 identical consensus votes into the third set to update to opposition consensus opinions, wherein the first set is an absolute complement of the fourth set for the N consensus proposals, and the fourth set stores the N consensus proposals in a first round of consensus; merging, by the target consensus node, the second set into the first set, and merging the third set into the fourth set, to perform a next round of consensus until the first set stores the N consensus proposals and the N consensus proposals each receive greater than or equal to 2f+1 identical consensus votes; and determining, by the target consensus node, a consensus result based on counted consensus votes of the N consensus proposals in the last round of consensus.