Go implementation of the Ethereum protocol
Find a file
Daniel Liu 3eb198b1a5
refactor(core): storage journal entry should revert dirtyness too #29641 (#2078)
Currently our state journal tracks each storage update to a contract, having the ability to revert those changes to the previously set value.

For the very first modification however, it behaves a bit wonky. Reverting the update doesn't actually remove the dirty-ness of the slot, rather leaves it as "change this slot to it's original value". This can cause issues down the line with for example write witnesses needing to gather an unneeded proof.

This PR modifies the storageChange journal entry to not only track the previous value of a slot, but also whether there was any previous value at all set in the current execution context. In essence, the PR changes the semantic of storageChange so it does not simply track storage changes, rather it tracks dirty storage changes, an important distinction for being able to cleanly revert the journal item.

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2026-03-06 11:15:44 +05:30
.github ci: improve github pull request template (#2026) 2026-02-07 00:15:01 +05:30
accounts refactor(ethclient): implement new sim backend #28202 (#2062) 2026-03-06 11:09:10 +05:30
assets/images update README and include a logo photo 2022-07-24 21:44:58 +10:00
beacon beacon/types: add beacon chain data types (#27292) 2024-12-28 09:06:31 +08:00
bmt refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
build build: move tidy check to doTidy() (#2023) 2026-02-06 14:44:07 +05:30
cicd fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
cmd fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
common chore: enable reward, penalty and dynamic gas on devnet (#2121) 2026-03-04 20:54:18 -08:00
consensus fix(consensus): hardening header verification #33860 (#2071) 2026-03-06 11:10:32 +05:30
console console/prompt: use PromptInput in PromptConfirm method #33445 (#1953) 2026-01-19 12:15:27 +05:30
contracts fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
core refactor(core): storage journal entry should revert dirtyness too #29641 (#2078) 2026-03-06 11:15:44 +05:30
crypto fix(crypto): fix coordinate check (#2072) 2026-03-06 11:14:31 +05:30
docker all: normalize flag's name 2024-11-25 16:39:29 +08:00
docs fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
eth fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
ethclient refactor(ethclient): implement new sim backend #28202 (#2062) 2026-03-06 11:09:10 +05:30
ethdb all: use slices.Sort() to sort strings (#1712) 2025-12-07 15:49:13 +05:30
ethstats fix(core): fix genesis error in #2019 (#2034) 2026-02-10 12:22:17 +08:00
event all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
genesis fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
internal refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
log all: use 0x-prefix string for type Address in log message (#1874) 2025-12-19 08:55:21 +04:00
metrics fix(metrics): add missing GaugeInfo case in GetAll() #33748 (#2041) 2026-02-28 16:53:35 +04:00
miner refactor(core): remove unnecessary parameters #30776 (#2068) 2026-02-20 13:51:30 +05:30
node refactor(all): remove term whitelist and blacklist (#1994) 2026-02-10 17:09:21 +05:30
p2p feat(p2p): swarm POC3 #17041 (#2059) 2026-02-28 17:30:04 +04:00
params test(ethclient): port ethclient tests from upstream (#2060) 2026-03-01 22:45:01 +04:00
rlp feat(rlp): add RawList for working with un-decoded lists #33755 (#2040) 2026-02-28 16:53:16 +04:00
rpc refactor(all): remove term whitelist and blacklist (#1994) 2026-02-10 17:09:21 +05:30
tests refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
trie refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
version chore(version): update version to v2.7.0-devnet (#2058) 2026-02-28 16:56:10 +04:00
XDCx refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
XDCxDAO all: fix whitespace error of golangci-lint, remove extra empty lines (#1676) 2025-11-17 11:16:09 +05:30
XDCxlending refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046) 2026-02-28 17:23:57 +04:00
.dockerignore dockerignore, internal/build: forward correct git folder 2017-11-12 22:52:41 +02:00
.gitattributes chore(.gitattributes): enable solidity highlighting on github #16425 (#2035) 2026-02-28 16:49:11 +04:00
.gitignore build: support golangci-lint v1.63.4 2025-01-11 23:56:59 +08:00
.golangci.yml build: upgrade golangci-lint to v2.0.2 #31530 (#1466) 2025-09-10 17:22:29 +08:00
.pre-commit-config.yaml chore: add conventional-pre-commit hook (#2027) 2026-02-07 00:12:08 +05:30
AGENTS.md chore(AGENTS.md): add AGENTS.md with guidelines for AI agents #33890 #33921 (#2083) 2026-03-03 17:26:58 +08:00
COPYING all: update license information 2015-07-07 14:12:44 +02:00
COPYING.LESSER all: update license information 2015-07-07 14:12:44 +02:00
go.mod fix(crypto): remove keccak_ziren.go (#2113) 2026-03-03 11:15:42 +08:00
go.sum fix(crypto): remove keccak_ziren.go (#2113) 2026-03-03 11:15:42 +08:00
interfaces.go refactor(ethclient): implement new sim backend #28202 (#2062) 2026-03-06 11:09:10 +05:30
Makefile Makefile, build: remove unused xgo (#1812) 2025-12-08 12:58:22 +05:30
README.md docs: add document for JSONRPC API (#1027) 2025-05-19 15:30:52 +08:00

XDPoSChain

XinFin XDPoSchain
Enterprise ready hybrid blockchain for global trade and finance


XinFin Hybrid Blockchain

XinFin Hybrid Blockchain is an Enterprise ready Blockchain for global trade and finance

Visit: XinFin.org Contribute: Developer Docs

XinFin Network XDPoS is community driven project to achieve the following

  • XinFin DPOS (XDPoS) consensus that selects 108 set of Masternodes to achieve a high throughput Energy efficient consensus with instant block finality

  • KYC Enforcement on Masternodes for Enterprise Adoption and compliance

  • Ability to port/relay limited set of data and transactions from privacy channels to public channel

  • Interoperability between applications hosted on Private Blockchains like Corda, Hyperledger, Quorum(JP Morgan) using relayers to XinFin Network

  • Customer Centric and consortium driven Governance to equally benefit the validators as well as providing comfort for large scale enterprise applications to be hosted on the Network. This achieves

    • Rapid Upgradability

    • DApps Standardisation for rapid commercialisation

    • Compliance with major global jurisdictions.

KYC for masternodes

OVERVIEW

To add a layer of KYC for masternodes in the current system and a sense of ownership amongst the masternodes hence tying such a cluster of masternodes to physical entity which can held accountable for its actions.

Design

We established a bidirectional connection between a candidate and its owner inorder to retrieve a candidate belonging to a specific owner & vice versa.

All the masternodes are recognized by the KYC of their owners and hence are considered as a single verified entity ( for eg. while voting for invalid KYC, only one vote is considered per such cluster )

The contract is very strict in handing out penalty for invalid KYC, it results loss of all funds invested in all of its candidates.

For eg. say A proposes condidates B,C,D by paying for its proposal cost. If at a later stage if some predecided amount of owners ( investors ) vote that a KYC for a A is invalid then A & all of its candidates (B,C,D) will lose their position & all their funds will be lost ( will remain with contract wallet ).

Documents

Document

For developers

Continues integration & delivery

See https://github.com/XinFinOrg/XDPoSChain/tree/dev-upgrade/cicd

To contribute

Simple create a pull request along with proper reasoning, we'll get back to you.

Our Channels : Telegram Developer Group or XDC.Dev