Skip to content

Merge main into test#78

Draft
attogram wants to merge 21 commits into
testfrom
main
Draft

Merge main into test#78
attogram wants to merge 21 commits into
testfrom
main

Conversation

@attogram

Copy link
Copy Markdown
Owner

Draft

google-labs-jules Bot and others added 21 commits November 16, 2025 10:59
Updated the checkpoints in `include/checkpoints.php` to the current block height.

Enhanced the error messages in `include/init.inc.php`, `include/class/Block.php`, and `include/class/NodeSync.php` to provide more detailed information when a checkpoint fails. The error messages now include the checkpoint height, the expected block ID, and the actual block ID.

Also formatted the 'Future block' error message to display the date in 'YYYY-MM-DD HH:MM:SS' format.
Creates a comprehensive guide for building smart contracts on the PHPCoin platform.

The guide covers:
- Structural rules
- State management
- Annotations
- Core transaction templates
- Built-in utilities
- ERC20 token templates
- Deployment
- Command-line tools
- A series of examples from "Hello, World!" to a "Wrapped PHPCoin" token.
Creates a comprehensive guide for building smart contracts on the PHPCoin platform.

The guide covers:
- Structural rules
- State management
- Annotations
- Core transaction templates
- Built-in utilities
- ERC20 token templates
- Deployment
- Command-line tools
- A series of examples from "Hello, World!" to a "Wrapped PHPCoin" token.
Adds a new section to the smart contract developer guide that explains the fixed fee for deploying a smart contract.

- Specifies the cost for both mainnet (1000 PHPCoin) and testnet (100 PHPCoin).
- Points to the `getSmartContractCreateFee()` method in `include/class/Blockchain.php` as the source of this value.
- Updates `include/checkpoints.php` with a comprehensive list of checkpoints, each including a timestamp comment. The comments are now correctly aligned for readability.
- Improves the error message for the genesis block check in `include/init.inc.php` to provide more specific details.
- Enhances the log message in `include/class/NodeSync.php` to give a more detailed output for checkpoint validation.
- Updates `include/checkpoints.php` with a comprehensive list of checkpoints up to height 1,240,000.
- Adds a formatted timestamp comment to every checkpoint entry for clarity.
- Aligns all comments in `checkpoints.php` for improved readability.
- Improves the error message for the genesis block check in `include/init.inc.php` to provide more specific details.
- Enhances the log message in `include/class/NodeSync.php` to give a more detailed output for checkpoint validation.
I will integrate this docs into official docs
Update checkpoints
Fix undefined var error - phpcoinn#18
- added sanitize id
- psr12 style
- update viewer
- update docs with breadcrumbs header
- fix bad markdown in few files: empty [links]
Comment out debug print statements in shutdown_handler.
Let there be docs - update #1
CommonSessionHandler :: read - fix / refactor
* Add files via upload

* Update README.md

* Rename phpcoin_pruned_node_feature.md to pruned_node_feature.md

* Optimizing blocks query

* Small fixes from testnet

* Add check for maintenance

* Direct buy campaign

* Updated api and docs

* Optimized pagination

* Push new version 1.6.9.390

* db update schema feature

* Testing mainnet schema update

* Push new version 1.6.10.391

* Set config column larger

* Added new column info in peers

* Increased schema version

* Push new version 1.6.11.392

* Added info column for peers

* Push new version 1.6.12.393

* Refactoring transaction data column

* Use new transaction_data

* Use new transaction_data

* Updated db sync

* Reverted column deletion for full database

* Reverted column deletion
Added column to ignore

* Refactoring transaction data column

* Removed key for deleted column

* Do not update transaction data on migration

* Push new version 1.6.13.394

* Synced install node script

* Pruned node feature

* Fixed sync sc state

* Added schema for pruned database

* Pruned node feature

* Fixed sync sc state

* Added schema for pruned database

* Push new version 1.7.0.395 - Pruned node feature

* Wallet connect gateway

* Merged smart contract Engine V2

* SC testing

* SC testing

* Modify column for mempool transaction data

* Synced coinspec from main

* Push new version 1.8.0.397

* Push new version 1.8.1.398 - block old versions

* Added deepwiki badge

* Clear phar file on compile

* Fixed miners sql

* Added API to read network difficulty

* Replaced login/logout wallet links

* Add optional running balance column to explorer address page.

Compute paginated starting balance via SQL offset so deep pages stay fast, and gate the column behind a Show balances toggle to avoid extra work by default.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add TX_DATA type scaffolding, fee, schema updates, and payload validation

* Bind TX_DATA payload hash to signature base via canonical field order

* Propagate TX_DATA via tx_data field and enforce tx_data-only validation

* Apply TX_DATA send-like balance accounting in add/reverse/mempool/block parse

* Include TX_DATA payload in block export for cross-node propagation

* Fix TX_DATA canonicalization consistency and explorer rendering

* Fixed schemas

* Harden TX_DATA validation path and improve explorer null rendering

* Preserve TX_DATA transactions during pruneNode compaction

* Add TX_DATA query APIs: getTxData and findTxData

* Updated new pruned height for testnet

* Added new tx type into search

* Updated sql scheme

* Added docs for TX_DATA concept

* Added docs for TX_DATA concept

* Push new version 1.9.0.399

* Push new version 1.9.1.400
Block older version

* Synced crypto lib

* Add testnet chain_id override files and drop obsolete migration 103

* Unify runtime network selection via chain_id and align testnet schema/runtime

* Refactor to CHAIN_ID bootstrap and align testnet override filenames

* Make apidoc sampleUrl chain-aware via generated config

* Add env-based network selection and fix wallet PHAR mainnet default

* Remove redundant chain_id bootstrap checks from init

* Allow network_chain_id helper in dapps sandbox

* Fix testnet coinspec constant warning and keep miner chain from node response

* Sync mainnet and testnet schema SQL files

* Restore DEFAULT_CHAIN_ID compatibility for existing node configs

* Switched network

* Push new version 1.10.0.401

* Push new version 1.10.1.402
Update db schema
Block older versions

* Updated test version

* Treat chain_id as deployment configuration

* Prepare update for test migrate

* Push new version for testnet: 1.9.1.517

* Push new version for testnet: 1.9.2.518

* Push new version for testnet: 1.9.3.519 - block older versions

* Push new version for mainnet: 1.10.2.403

* Push new version for mainnet: 1.10.3.404
Block older versions
Foorce DB check + update

* Add asymmetric messaging support

* Remove asymmetric exports from legacy wrapper

* Update dapps development docs

* Ignore project status file

* Revert "Ignore project status file"

This reverts commit 4d09eaa.

* Remove project status file and ignore it

* Push new version 1.10.0..520 testnet

* Push new version mainnet 1.11.0.405

* Updated docs with asymmetric messaging

* Updated docs with asymmetric messaging

---------

Co-authored-by: PHPCoin <86735260+phpcoinn@users.noreply.github.com>
Co-authored-by: phpcoinn <phpcoinn@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants