Commit Graph

  • a4d10de1cc [DEV-333] Reformatted the condition. Stas Boutenko 2019-01-15 16:23:49 +02:00
  • 9b235451b1 [DEV-333] Combined the two incompatible subnetwork cases into one if. Stas Boutenko 2019-01-15 15:41:34 +02:00
  • ec507ac40b [DEV-333] Possibly fixed outbound msgVersion rules. Stas Boutenko 2019-01-15 15:26:03 +02:00
  • 92b1d96623 [DEV-333] chain -> DAG Stas Boutenko 2019-01-15 13:00:42 +02:00
  • 0990b1b28d [DEV-333] Fixed partial nodes disconnecting from full nodes. Stas Boutenko 2019-01-15 12:26:20 +02:00
  • 91e98ea5e7 [DEV-333] Renamed ChainParams to DAGParams. Stas Boutenko 2019-01-14 18:13:51 +02:00
  • aa4cd27b38 [DEV-348] Removed a couple of unused methods. Stas Boutenko 2019-01-14 18:10:06 +02:00
  • f1cfe14079 [DEV-333] Fixed bad comment. Stas Boutenko 2019-01-14 16:34:03 +02:00
  • a89e323c6a Merge branch 'master' into dev-333-version-subnetwork Stas Boutenko 2019-01-14 16:29:33 +02:00
  • 3a5abb6584 [DEV-338] Remove provisional nodes, and panic in case there's an error after verifying the block is valid (#162) Evgeny Khirin 2019-01-14 16:28:05 +02:00
  • 4fbdb3f6b5 [DEV-333] Added rejection for peers with wrong subnetwork. Stas Boutenko 2019-01-14 16:27:08 +02:00
  • 801c506a92 [DEV-338] Fixed comments Evgeny Khirin 2019-01-14 16:23:47 +02:00
  • 6cf712ac56 [DEV-333] Added serialization/deserialization of the version message. Stas Boutenko 2019-01-14 16:17:09 +02:00
  • 5103aae51c Merge remote-tracking branch 'origin/master' into dev-338-remove-provisional-nodes Evgeny Khirin 2019-01-14 16:02:50 +02:00
  • 3883eba59e [DEV-338] Fixed build Evgeny Khirin 2019-01-14 15:53:36 +02:00
  • f5f23c3cc5 [DEV-338] Fixed dag.index.SetStatusFlags for parents + cosmetic changes Evgeny Khirin 2019-01-14 15:36:11 +02:00
  • dd45d87db4 [DEV-338] Improved deffered blockNode cleanup and cosmetic changes Evgeny Khirin 2019-01-14 14:54:21 +02:00
  • 57fa33f529 [DEV-338] Remove provisional nodes, and panic in case there's an error after verifying the block is valid Evgeny Khirin 2019-01-14 13:31:20 +02:00
  • 6f0f29306f [DEV-333] Fixed broken references. Stas Boutenko 2019-01-14 11:30:04 +02:00
  • 6135af48ea Merge remote-tracking branch 'origin/master' into dev-333-version-subnetwork Stas Boutenko 2019-01-14 11:26:42 +02:00
  • 38dc089b15 [DEV-333] Added subnetwork to local peer version message. Stas Boutenko 2019-01-14 11:26:13 +02:00
  • e3994cddac [DEV-347] Normalize the way 'subnetwork' is capitalized (#161) Svarog 2019-01-13 18:00:34 +02:00
  • 31fbcb7d59 [DEV-347] Normalize the way 'subnetwork' is capitalized Mike Zak 2019-01-13 17:19:40 +02:00
  • 515b498371 [DEV-334] Add IDMerkleRoot to blocknode and recalculate IDMerkleRoot when extraNonce is changed Ori Newman 2019-01-13 16:33:19 +02:00
  • d341bf577b Merge remote-tracking branch 'origin/dev-304-txid-and-new-merkles' into dev-334-make-id-merkle-root Ori Newman 2019-01-13 16:22:17 +02:00
  • bbe27c10d0 [DEV-329] Add txid that excludes payload, gas and ScriptSigs (#158) Ori Newman 2019-01-13 16:09:57 +02:00
  • 169552cff2 [DEV-329] change txEncodingexcludeSignatureScript -> txEncodingExcludeSignatureScript Ori Newman 2019-01-13 16:08:49 +02:00
  • 8a005ded08 [DEV-329] Change txencoding var names Ori Newman 2019-01-13 15:24:50 +02:00
  • a209e11f50 [DEV-329] replace thinEncoding bool with txEncoding bitmask Ori Newman 2019-01-13 15:08:07 +02:00
  • 9199a0bcdd [DEV-334] Make IDMerkleRoot Ori Newman 2019-01-13 14:00:39 +02:00
  • 612dbc9875 [DEV-332] Added MerkleProof to MsgBlock and rejected full-node/partial-block type misbehaviors. Stas Boutenko 2019-01-13 12:37:06 +02:00
  • ef85afc3ba [DEV-329] change txhash to txid in mempool Ori Newman 2019-01-13 12:14:52 +02:00
  • e089f567c1 Merge branch 'master' into dev-304-txid-and-new-merkles Ori Newman 2019-01-13 11:00:43 +02:00
  • 6b55950901 [DEV-345] Enforce requirement for transactions from 1(DAGCoin) or 2(sub network registry) sub network to have gas = 0 (#157) Svarog 2019-01-13 11:01:43 +02:00
  • 7cd4da27c6 [DEV-345] Improved formatting Mike Zak 2019-01-13 10:57:28 +02:00
  • fe83d6e6c7 [DEV-345] Renamed tstCheck{Script/Rule}Error to check{Script/Rule}Error Mike Zak 2019-01-13 10:49:01 +02:00
  • 096e23acd5 [DEV-345] Verify that payload in Gas sub-network is always 8 bytes (uint64). Mike Zak 2019-01-13 10:32:24 +02:00
  • 45783ac411 [DEV-345] Remove checks for Gas and Payload validity in wire.MsgTx.Decode Mike Zak 2019-01-13 10:31:51 +02:00
  • a91d1b284c [DEV-341] Add TestNewBlockTemplate Ori Newman 2019-01-13 10:28:33 +02:00
  • 698a697790 Merge remote-tracking branch 'origin/master' into dev-341-increase-mining-test-coverage Ori Newman 2019-01-10 18:54:28 +02:00
  • c4c06e6ce8 [DEV-341] Add TestNewBlockTemplate Ori Newman 2019-01-10 18:39:50 +02:00
  • cf6fdbc613 [DEV-345] Added tests for CheckTransactionSanity Mike Zak 2019-01-10 18:31:54 +02:00
  • 90417cfc9e [DEV-345] Remove check for txOut.Value < 0, since txOut.Value is a uint64 Mike Zak 2019-01-10 18:31:20 +02:00
  • bef45022f7 Merge branch 'master' into dev-345-dagcoin-and-registry-0-gas Mike Zak 2019-01-10 17:25:13 +02:00
  • 1743877b66 Merge remote-tracking branch 'origin/dev-304-change-subnetworkid-to-hash-instead-of-running-number' Mike Zak 2019-01-10 17:23:45 +02:00
  • 5171d26bba [DEV-343] Change SubNetworkRegistry to use SubNetworkID as Hash160 (#156) stasatdaglabs 2019-01-10 17:13:11 +02:00
  • 8bed4fa6c5 [DEV-343] Fixed return nil instead of err. Used a better way to check whether we should continue checking accepted transactions. Stas Boutenko 2019-01-10 17:10:49 +02:00
  • a5b5f2d3d9 [DEV-345] Validate that gas and payload are 0 when required by sub-network Mike Zak 2019-01-10 16:46:55 +02:00
  • fa83d34f7e [DEV-343] Added an error case in GasLimit() for where the sub-network is nil. Stas Boutenko 2019-01-10 16:29:03 +02:00
  • a43de69a2a [DEV-343] Renamed buildSubNetworkID to txToSubNetworkID. Broke out of a loop when it was known that no further processing is required. Handled error cases from dbGetNetwork separately from the "not-found" case/ Stas Boutenko 2019-01-10 16:22:42 +02:00
  • 88bde1c014 [DEV-343] Removed an unnecessary clone. Stas Boutenko 2019-01-10 13:19:21 +02:00
  • ff1412abd6 [DEV-343] Made sub-network registry use subNetworkIDs. Stas Boutenko 2019-01-10 13:05:57 +02:00
  • 2fd8195b7c Merge remote-tracking branch 'origin/master' into dev-341-increase-mining-test-coverage Ori Newman 2019-01-10 11:53:04 +02:00
  • 7195160219 [DEV-346] Added missed push into priority queue (#155) Evgeny Khirin 2019-01-10 11:46:37 +02:00
  • 347a01e82e [DEV-346] Added missed push into priority queue Evgeny Khirin 2019-01-10 10:46:20 +02:00
  • 2fc81577b0 Merge remote-tracking branch 'origin/master' into dev-341-increase-mining-test-coverage Ori Newman 2019-01-09 17:57:48 +02:00
  • 0553f7e2e7 [DEV-342] change subnetworkid to hash160 (#154) Ori Newman 2019-01-09 17:55:25 +02:00
  • f0cd061e87 [DEV-342] Add subnetworkid package Ori Newman 2019-01-09 17:50:28 +02:00
  • bc44b7fa17 Merge remote-tracking branch 'origin/master' into dev-342-change-subnetworkid-to-hash160 Ori Newman 2019-01-09 17:01:29 +02:00
  • d659c7ab31 [DEV-342] Change subnetworkhash type and package to subnetworkid Ori Newman 2019-01-09 16:39:13 +02:00
  • e76ce06acd [DEV-337] enusre transaction not overuse gas (#152) Evgeny Khirin 2019-01-09 15:54:48 +02:00
  • adf0b42936 [DEV-337] Removed TODO comment Evgeny Khirin 2019-01-09 14:10:49 +02:00
  • fd15b88670 [DEV-337] Fixed tests stuff Evgeny Khirin 2019-01-09 13:45:34 +02:00
  • fb2986197b [DEV-342] Fix rpcserver.go mismatched types Ori Newman 2019-01-09 13:41:52 +02:00
  • 41d1a08365 [DEV-326] Fixed ffldb tests broken in Windows (#153) stasatdaglabs 2019-01-09 13:41:40 +02:00
  • e4ac0259ea Merge remote-tracking branch 'origin/master' into dev-342-change-subnetworkid-to-hash160 Ori Newman 2019-01-09 13:39:18 +02:00
  • 80aaea50a2 [DEV-326] Using pdb.closed instead of an additional variable. Stas Boutenko 2019-01-09 13:21:38 +02:00
  • ff625e9996 [DEV-342] Fix tests Ori Newman 2019-01-09 13:17:21 +02:00
  • f70eac6882 [DEV-342] Make subnetworkid Hash160 Ori Newman 2019-01-09 13:16:58 +02:00
  • 933f46c1c5 [DEV-326] Fixed closing a file twice. Stas Boutenko 2019-01-09 13:14:37 +02:00
  • f93d32d6eb [DEV-326] Worked around a timer-related oddity. Stas Boutenko 2019-01-09 12:57:30 +02:00
  • cc9b8da351 [DEV-355] Disable all mining-related API calls on partial nodes (#151) stasatdaglabs 2019-01-09 12:54:43 +02:00
  • 4aaddd5578 [DEV-335] Removed error from getGenerate. Stas Boutenko 2019-01-09 11:53:53 +02:00
  • c23c4458d3 [DEV-335] Fixed formatting. Stas Boutenko 2019-01-09 11:23:36 +02:00
  • 86105ffbd1 [DEV-335] Changed error type to ErrRPCInvalidRequest and rephrased the error message. Stas Boutenko 2019-01-09 11:22:06 +02:00
  • e16a64de0e [DEV-326] Worked around a parallelism issue in go test. Fixed a test where a file was being deleted while still open. Stas Boutenko 2019-01-08 17:50:32 +02:00
  • 5d296ba1aa Merge branch 'dev-337-enusre-transaction-not-overuse-gas' of github.com:daglabs/btcd into dev-337-enusre-transaction-not-overuse-gas Evgeny Khirin 2019-01-08 17:40:50 +02:00
  • c1592d53d7 [DEV-337] Fixed build Evgeny Khirin 2019-01-08 17:40:31 +02:00
  • d519641dc1
    Merge branch 'master' into dev-337-enusre-transaction-not-overuse-gas Evgeny Khirin 2019-01-08 17:35:01 +02:00
  • 39026deeba [DEV-337] Added Unit test for gas usage in transaction Evgeny Khirin 2019-01-08 17:32:37 +02:00
  • bc70a709e7 [DEV-335] Fixed some more formatting errors. Stas Boutenko 2019-01-08 15:31:01 +02:00
  • 572bb98fde [DEV-335] Fixed formatting errors. Stas Boutenko 2019-01-08 15:24:41 +02:00
  • e67950a0da [DEV-355] Disallowed mining-related RPC commands from running on any sub-network besides the "all" sub-network. Stas Boutenko 2019-01-08 15:15:12 +02:00
  • a9c75f805d [DEV-337] Moved transaction GAS check to mempool Evgeny Khirin 2019-01-08 12:28:33 +02:00
  • 9988495cee Merge remote-tracking branch 'origin/master' into dev-341-increase-mining-test-coverage Ori Newman 2019-01-07 18:27:52 +02:00
  • c1d08026ad [DEV-341] Ensure 100% coverage for mining package Ori Newman 2019-01-07 18:27:19 +02:00
  • 3065a1aef8 Merge remote-tracking branch 'origin/master' into dev-337-enusre-transaction-not-overuse-gas Evgeny Khirin 2019-01-07 18:23:53 +02:00
  • 6feea90946 Dev 312 update miner logic to fit new rules (#150) Evgeny Khirin 2019-01-07 18:07:49 +02:00
  • e929a82c97 [DEV-312] Fix after merging Evgeny Khirin 2019-01-07 17:59:42 +02:00
  • 00bf292610 Merge branch 'master' into dev-312-update-miner-logic-to-fit-new-rules Evgeny Khirin 2019-01-07 17:54:09 +02:00
  • c035c77597 [DEV-312] Prepare to merge with master Evgeny Khirin 2019-01-07 17:49:10 +02:00
  • f8196a7159 [DEV-337] Make sure that a transaction that uses more gas than the total allowed for sub-network Evgeny Khirin 2019-01-07 17:37:03 +02:00
  • d33d633e77 [DEV-307] Create the sub-network registry (#147) stasatdaglabs 2019-01-07 17:10:23 +02:00
  • 50ef2138ea [DEV-307] Fixed comments. Stas Boutenko 2019-01-07 16:39:08 +02:00
  • 13fff94e1c [DEV-307] Simplified the serialized representation of a slice of transactions. Stas Boutenko 2019-01-07 14:48:32 +02:00
  • 16793c72e4 [DEV-307] Merged dbPutRegisteredSubNetworkTx and dbRegisterSubNetwork. Fixed a too-big allocation and a block double-processing bug. Stas Boutenko 2019-01-07 14:29:26 +02:00
  • 530c293d33 [DEV-307] Moved sub-network IO stuff to subnetworks.go and subnetworks_test.go. Stas Boutenko 2019-01-07 13:19:10 +02:00
  • 6e8c675319 [DEV-307] Renamed previousFinalityPoint to initialFinalityPoint. Stas Boutenko 2019-01-07 13:14:34 +02:00
  • efb99179a7 [DEV-307] Added a newline at the end of dag_test.go. Stas Boutenko 2019-01-07 12:01:02 +02:00
  • b61de7739b [DEV-307] Moved sub-network stuff to their own files. Got rid of firstSubNetworkID. Replaced SubNetworkReservedLast with SubNetworkUnreservedFirst. Added ErrSubNetworkRegistry. Stas Boutenko 2019-01-07 11:52:40 +02:00